-
Notifications
You must be signed in to change notification settings - Fork 433
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 #14238 from danidoni/post-staging-project-copy
Post staging project copy
- Loading branch information
Showing
2 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
36 changes: 36 additions & 0 deletions
36
...ng_project_name_staging_projects_staging_project_name_copy_staging_project_copy_name.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,36 @@ | ||
post: | ||
summary: Copy a staging project | ||
security: | ||
- basic_authentication: [] | ||
parameters: | ||
- $ref: '../components/parameters/project_name.yaml' | ||
- $ref: '../components/parameters/staging_project_name.yaml' | ||
- in: path | ||
name: staging_project_copy_name | ||
schema: | ||
type: string | ||
required: true | ||
description: The name of the staging project's copy | ||
example: "openSUSE:Factory:Staging:B" | ||
responses: | ||
'200': | ||
$ref: '../components/responses/succeeded.yaml' | ||
'404': | ||
description: Not Found. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/api_response.yaml' | ||
examples: | ||
not_found: | ||
summary: Staging Workflow Project Not Found | ||
value: | ||
code: not_found | ||
summary: 'Project home:Adminn not found.' | ||
staging_project_not_found: | ||
summary: Staging Project Name Not Found | ||
value: | ||
code: staging_project_not_found | ||
details: 'Staging Project "home:Admin:Staging:AA" does not exist.' | ||
tags: | ||
- Staging Workflow |