-
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.
Add OpenAPI specifications for createmaintenanceincident
Co-authored-by: Eduardo Navarro <enavarro@suse.com>
- Loading branch information
1 parent
3d1ce29
commit 7715b66
Showing
3 changed files
with
60 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
10 changes: 10 additions & 0 deletions
10
src/api/public/apidocs-new/components/schemas/code_and_summary.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 @@ | ||
type: object | ||
properties: | ||
code: | ||
type: string | ||
xml: | ||
attribute: true | ||
summary: | ||
type: string | ||
xml: | ||
name: status |
46 changes: 46 additions & 0 deletions
46
src/api/public/apidocs-new/paths/source_createmaintenanceincident.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,46 @@ | ||
post: | ||
summary: Create maintenance incident projects | ||
description: Create a mainatenance incident project based on attribute search. | ||
security: | ||
- basic_authentication: [] | ||
parameters: | ||
- in: query | ||
name: attribute | ||
schema: | ||
type: string | ||
example: OBS:MaintenanceProject | ||
description: attribute used for package search, default is OBS:MaintenanceProject | ||
responses: | ||
'200': | ||
description: ok | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/api_response.yaml' | ||
example: | ||
code: ok | ||
summary: Ok | ||
data: | ||
- MaintenanceProject:1 | ||
'400': | ||
description: Bad Request | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/code_and_summary.yaml' | ||
example: | ||
code: incident_has_no_maintenance_project | ||
summary: incident projects shall only create below maintenance projects | ||
'401': | ||
$ref: '../components/responses/unauthorized.yaml' | ||
'403': | ||
description: Forbidden | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/code_and_summary.yaml' | ||
example: | ||
code: modify_project_no_permission | ||
summary: no permission to modify project 'MaintenanceProject' | ||
tags: | ||
- Sources |