-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14219 from rubhanazeem/document-status-messages
OpenAPI specifications for POST status/messages
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/api/public/apidocs-new/components/responses/status_message_no_permission.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: | | ||
Status message no permission. | ||
XML Schema used for body validation: [status.xsd](../schema/status.xsd) | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../schemas/api_response.yaml' | ||
examples: | ||
status message no permission: | ||
value: | ||
code: put_request_no_permission | ||
summary: "Requires admin privileges" |
10 changes: 10 additions & 0 deletions
10
src/api/public/apidocs-new/components/responses/validation_error.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,10 @@ | ||
description: Bad request. Validation Error | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../schemas/api_response.yaml' | ||
examples: | ||
Validation Failed: | ||
value: | ||
code: validation_failed | ||
summary: "status_message validation error: 2:0: ERROR: Element '<some element>': No matching global declaration available for the validation root." |
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 |
---|---|---|
|
@@ -14,3 +14,5 @@ properties: | |
type: string | ||
created_at: | ||
type: string | ||
xml: | ||
name: status_message |
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