This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 764
'Query' support for channels.list.joined, groups.list, groups.listAll, im.list #515
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e3d5948
Docs for 'query' of channels.list.joined, groups.list, groups.listAll…
xbolshe 75d5e4c
Add a link to groups.listAll
xbolshe ec02a15
Add Groups.listAll to ToC
xbolshe 4c3a662
Change version to 0.62.0
xbolshe 3dece63
Fix conflict
xbolshe da3494c
Merge branch 'master' into master
xbolshe 17597b4
Fix bundle exec mdl
xbolshe aaa28a6
Merge branch 'master' of https://github.com/xbolshe/docs
xbolshe e493606
Fix bundle exec mdl
xbolshe 5c1f2c0
Fix markdown
xbolshe b3c4f61
Merge branch 'master' into master
xbolshe a800a6b
Update documentation-map
xbolshe 460d266
Update Example Call
xbolshe 88e2717
Merge branch 'master' into master
MartinSchoeler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,6 +258,7 @@ | |
- kick | ||
- leave | ||
- list | ||
- listAll | ||
- open | ||
- removeModerator | ||
- removeOwner | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Group List All | ||
|
||
Lists all of the private groups of any users. The calling user requires to have 'view-room-administration' right. It supports the [Offset, Count, and Sort Query Parameters](../../offset-and-count-and-sort-info/) along with just the [Fields Query Parameters](../../query-and-fields-info/). | ||
|
||
| URL | Requires Auth | HTTP Method | | ||
| :--- | :--- | :--- | | ||
| `/api/v1/groups.listAll` | `yes` | `GET` | | ||
|
||
## Example Call | ||
|
||
This example shows a list of private groups filtered by "customFields.companyId" started with "org1" using a regular expression. | ||
|
||
```bash | ||
curl -H "X-Auth-Token: 8-gard51USVYskZ7AAqFF3SZuwg24VIdn9-HchYersg" \ | ||
-H "X-User-Id: 3WpJQkDHhrWPBvXuW" \ | ||
http://localhost:3000/api/v1/groups.listAll?query=%7B%20%22customFields.companyId%22%3A%20%7B%20%22%24regex%22%3A%20%22%5Eorg1%22%7D%20%7D | ||
``` | ||
|
||
## Example Result | ||
|
||
```json | ||
{ | ||
"groups": [ | ||
{ | ||
"_id": "xA52DRDM7dqx2PfTp", | ||
"name": "private1", | ||
"fname": "private1", | ||
"t": "p", | ||
"msgs": 0, | ||
"u": { | ||
"_id": "3WpJQkDHhrWPBvXuW", | ||
"username": "admin" | ||
}, | ||
"customFields": { | ||
"companyId": "org1" | ||
}, | ||
"ts": "2018-01-21T21:05:06.729Z", | ||
"ro": false, | ||
"sysMes": true, | ||
"_updatedAt": "2018-01-21T21:05:06.729Z" | ||
} | ||
], | ||
"offset": 0, | ||
"count": 1, | ||
"total": 1, | ||
"success": true | ||
} | ||
|
||
``` | ||
|
||
## Change Log | ||
|
||
| Version | Description | | ||
| :--- | :--- | | ||
| 0.62.0 | Add 'query' parameter support. | | ||
| 0.59.0 | Added | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this file to the Table of Contents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.