Skip to content

Commit

Permalink
Merge pull request #14032 from saraycp/package_addcontainers_endpoint
Browse files Browse the repository at this point in the history
Document GET `/source/{project_name}/{package_name}?cmd=addcontainers` endpoint with OpenAPI
  • Loading branch information
saraycp committed Mar 17, 2023
2 parents 8d1d965 + 2c9a4dc commit 39daeb7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 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 @@ -322,6 +322,8 @@ paths:
$ref: 'paths/source_project_name_package_name_history.yaml'
/source/{project_name}/{package_name}/_meta:
$ref: 'paths/source_project_name_package_name_meta.yaml'
/source/{project_name}/{package_name}?cmd=addcontainers:
$ref: 'paths/source_project_name_package_name_cmd_addcontainers.yaml'
/source/{project_name}/{package_name}?cmd=branch:
$ref: 'paths/source_project_name_package_name_cmd_branch.yaml'
/source/{project_name}/{package_name}?cmd=collectbuildenv:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
post:
summary: Add docker container packages and repositories
description: Add docker container packages and repositories using the maintained version of this package
parameters:
- $ref: '../components/parameters/project_name.yaml'
- $ref: '../components/parameters/package_name.yaml'
- in: query
name: cmd
required: true
schema:
type: string
enum:
- addcontainers
- in: query
name: extend_package_names
schema:
type: string
enum:
- 1
example: 1
description: |
Set to consider the container name as a parsed combination of container project and container name.
With format `[container name].[container project name]` where `:` was replaced by `_`,
i.e. "kiwi-templates-Minimal.SUSE_Templates_Images_SLE-15-SP4".
security:
- basic_authentication: []
responses:
'200':
$ref: '../components/responses/succeeded.yaml'
'401':
$ref: '../components/responses/unauthorized.yaml'
'404':
$ref: '../components/responses/unknown_project_or_package.yaml'
tags:
- Sources - Packages

0 comments on commit 39daeb7

Please sign in to comment.