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 #14232 from rubhanazeem/document-status-messages
OpenAPI specifications for GET /status_message
- Loading branch information
Showing
3 changed files
with
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
get: | ||
summary: Get list of status messages | ||
description: | | ||
Get a list of all status messages | ||
security: | ||
- basic_authentication: [] | ||
parameters: | ||
- $ref: '../components/parameters/limit.yaml' | ||
responses: | ||
'200': | ||
description: OK. The request has succeeded. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/status_messages.yaml' | ||
example: | ||
count: 2 | ||
status_message: | ||
- id: 2 | ||
message: OBS 3.0 is released! | ||
user: Iggy | ||
severity: announcement | ||
scope: all_users | ||
created_at: 2021-10-15 13:28:22 UTC | ||
- id: 1 | ||
message: Feature number 42 was implemented! | ||
user: Iggy | ||
severity: announcement | ||
scope: all_users | ||
created_at: 2021-10-12 11:18:12 UTC | ||
'401': | ||
$ref: '../components/responses/unauthorized.yaml' | ||
tags: | ||
- Status Messages |
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