Skip to content

Commit

Permalink
Merge pull request #14238 from danidoni/post-staging-project-copy
Browse files Browse the repository at this point in the history
Post staging project copy
  • Loading branch information
saraycp committed Apr 27, 2023
2 parents 48cf6d1 + 0c2d670 commit 962fa0d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/public/apidocs-new/OBS-v2.10.50.yaml
Expand Up @@ -412,6 +412,8 @@ paths:
$ref: 'paths/staging_project_name_workflow.yaml'
/staging/{project_name}/staging_projects/{staging_project_name}:
$ref: 'paths/staging_project_name_staging_projects_staging_project_name.yaml'
/staging/{project_name}/staging_projects/{staging_project_name}/copy/{staging_project_copy_name}:
$ref: 'paths/staging_project_name_staging_projects_staging_project_name_copy_staging_project_copy_name.yaml'

# Status messages
/status/messages:
Expand Down
@@ -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

0 comments on commit 962fa0d

Please sign in to comment.