-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add User Group Instances endpoint (#406)
* Add User Group Instances endpoint * Add code sample
- Loading branch information
1 parent
f656bbe
commit 1b35761
Showing
5 changed files
with
52 additions
and
0 deletions.
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
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
13 changes: 13 additions & 0 deletions
13
openapi/components/responses/users/UserGroupInstanceListResponse.yaml
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,13 @@ | ||
description: Returns a list of Instance objects with a fetched at time. | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
fetchedAt: | ||
type: string | ||
format: date-time | ||
instances: | ||
type: array | ||
items: | ||
$ref: ../../schemas/Instance.yaml |
11 changes: 11 additions & 0 deletions
11
openapi/components/responses/users/UserMustBeOwnError.yaml
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,11 @@ | ||
description: Error response when trying get group instances of another user. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../schemas/Error.yaml | ||
examples: | ||
User Id must be your own: | ||
value: | ||
error: | ||
message: "User ID must be your own․" | ||
status_code: 403 |