Skip to content

Commit

Permalink
Update swagger (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlwanl authored May 24, 2019
1 parent 4bf0aad commit 7bb25f3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- [Send message to a user](#send-user)
- [Add a user to a group](#add-user-to-group)
- [Remove a user from a group](#remove-user-from-group)
- [Remove a user from all groups](#remove-user-from-all-groups)
- [Using REST API](#using-rest-api)
- [Authentication](#authentication)
- [Signing Algorithm and Signature](#signing)
Expand Down
35 changes: 35 additions & 0 deletions docs/swagger/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,41 @@
}
}
}
},
"/api/v1/hubs/{hub}/users/{id}/groups": {
"delete": {
"description": "Remove a user from all groups.",
"tags": [],
"operationId": "RemoveUserFromAllGroups",
"consumes": [
"application/json"
],
"produces": [],
"parameters": [
{
"name": "hub",
"in": "path",
"required": true,
"type": "string",
"description": "Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore."
},
{
"name": "id",
"in": "path",
"required": true,
"type": "string",
"description": "Target user Id."
}
],
"responses": {
"202": {
"description": "Accepted"
},
"200": {
"description": "Ok"
}
}
}
}
},
"definitions": {
Expand Down

0 comments on commit 7bb25f3

Please sign in to comment.