-
Notifications
You must be signed in to change notification settings - Fork 438
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 #14213 from saraycp/staging_backlog_endpoint
Document staging backlog endpoint with OpenAPI
- Loading branch information
Showing
3 changed files
with
80 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
44 changes: 44 additions & 0 deletions
44
src/api/public/apidocs-new/components/schemas/staging/backlog.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,44 @@ | ||
type: object | ||
properties: | ||
request: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
example: 42 | ||
xml: | ||
attribute: true | ||
creator: | ||
type: string | ||
example: foo-user | ||
xml: | ||
attribute: true | ||
type: | ||
type: string | ||
example: submit | ||
xml: | ||
attribute: true | ||
state: | ||
type: string | ||
example: review | ||
xml: | ||
attribute: true | ||
package: | ||
type: string | ||
example: 'hello_world' | ||
xml: | ||
attribute: true | ||
superseded_by: | ||
type: integer | ||
example: 43 | ||
xml: | ||
attribute: true | ||
updated: | ||
type: string | ||
example: '2023-04-24T08:34:39Z' | ||
xml: | ||
attribute: true | ||
xml: | ||
name: backlog |
34 changes: 34 additions & 0 deletions
34
src/api/public/apidocs-new/paths/staging_project_name_backlog.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,34 @@ | ||
get: | ||
summary: List the requests in the staging backlog. | ||
description: | | ||
List the requests that can be assigned to the staging project (backlog). | ||
security: | ||
- basic_authentication: [] | ||
parameters: | ||
- $ref: '../components/parameters/project_name.yaml' | ||
responses: | ||
'200': | ||
description: List of request in the staging backlog. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/staging/backlog.yaml' | ||
'401': | ||
$ref: '../components/responses/unauthorized.yaml' | ||
'404': | ||
description: Not Found | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/api_response.yaml' | ||
examples: | ||
project_without_staging_workflow: | ||
value: | ||
code: not_found | ||
sumary: "Project project_name doesn't have an associated Staging Workflow" | ||
Unknown Project: | ||
value: | ||
code: unknown_project | ||
summary: "Project not found: <some project>." | ||
tags: | ||
- Staging Workflow |