-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(instance): document the closeInstance endpoint (#302)
Document the closeInstance endpoint.
- Loading branch information
Showing
3 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
16 changes: 16 additions & 0 deletions
16
openapi/components/responses/instances/InstanceCloseForbiddenError.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,16 @@ | ||
description: Error response due to not being allowed to close an instance | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../../schemas/Error.yaml | ||
examples: | ||
Not Allowed to Close Instance Example: | ||
value: | ||
error: | ||
message: "You're not allowed to close this instance․" | ||
status_code: 403 | ||
Instance Already Closed Example: | ||
value: | ||
error: | ||
message: "You're not allowed to close an already closed instance․" | ||
status_code: 403 |
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