Skip to content

Commit

Permalink
Merge pull request #14195 from rubhanazeem/document-status-messages
Browse files Browse the repository at this point in the history
OpenAPI specifications for GET status/messages
  • Loading branch information
rubhanazeem committed Apr 24, 2023
2 parents 24ebdd8 + 84ff645 commit aa04625
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/public/apidocs-new/OBS-v2.10.50.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ paths:
/worker?cmd=checkconstraints:
$ref: 'paths/worker_cmd_checkconstraints.yaml'

# Status messages
/status/messages:
$ref: 'paths/status_messages.yaml'

components:
securitySchemes:
basic_authentication:
Expand Down
32 changes: 32 additions & 0 deletions src/api/public/apidocs-new/paths/status_messages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
get:
summary: Get list of status messages
description: |
Get a list of all status messages
security:
- basic_authentication: []
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

0 comments on commit aa04625

Please sign in to comment.