Skip to content

Commit

Permalink
Merge pull request #14031 from krauselukas/apidocs/source_project_pac…
Browse files Browse the repository at this point in the history
…kage_cmd_updatepatchinfo

Document `/source/{project_name}/{package_name}?cmd=updatepatchinfo` with OpenAPI
  • Loading branch information
krauselukas committed Mar 17, 2023
2 parents 3d0e9d0 + 56df236 commit 8d1d965
Show file tree
Hide file tree
Showing 2 changed files with 30 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 @@ -364,6 +364,8 @@ paths:
$ref: 'paths/source_project_name_package_name_cmd_undelete.yaml'
/source/{project_name}/{package_name}?cmd=unlock:
$ref: 'paths/source_project_name_package_name_cmd_unlock.yaml'
/source/{project_name}/{package_name}?cmd=updatepatchinfo:
$ref: 'paths/source_project_name_package_name_cmd_updatepatchinfo.yaml'
/source/{project_name}/{package_name}?cmd=waitservice:
$ref: 'paths/source_project_name_package_name_cmd_waitservice.yaml'
/source/{project_name}/{package_name}?cmd=wipe:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
post:
summary: Update the issues listed in the `_patchinfo` file of a specified package.
description: |
Update the issues listed in the `_patchinfo` file of a specified package, based on
infos available through the issue trackers.
security:
- basic_authentication: []
parameters:
- $ref: '../components/parameters/project_name.yaml'
- $ref: '../components/parameters/package_name.yaml'
responses:
'200':
$ref: '../components/responses/succeeded.yaml'
'401':
$ref: '../components/responses/unauthorized.yaml'
'403':
description: Forbidden.
content:
application/xml; charset=utf-8:
schema:
$ref: '../components/schemas/api_response.yaml'
example:
code: cmd_execution_no_permission
summary: no permission to modify package patchinfo in project openSUSE:Maintenance:123
'404':
$ref: '../components/responses/unknown_project_or_package.yaml'
tags:
- Sources - Packages

0 comments on commit 8d1d965

Please sign in to comment.