-
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.
OpenAPI specifications for GET/POST source files - without attribute …
…paramater
- Loading branch information
1 parent
550f228
commit 188df48
Showing
2 changed files
with
62 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
60 changes: 60 additions & 0 deletions
60
.../public/apidocs-new/paths/source_project_name_package_name_binary_filename_attribute.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,60 @@ | ||
get: | ||
summary: Get list of attributes and attribute values with binary parameter | ||
description: | | ||
Get a list of all attributes and their values for a given binary | ||
security: | ||
- basic_authentication: [] | ||
parameters: | ||
- $ref: '../components/parameters/project_name.yaml' | ||
- $ref: '../components/parameters/package_name.yaml' | ||
- $ref: '../components/parameters/binary_filename.yaml' | ||
responses: | ||
'200': | ||
description: OK. The request has succeeded. | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/source/attributes.yaml' | ||
example: | ||
- name: AllowSubmitToMaintenanceRelease | ||
namespace: OBS | ||
binary: SLES-cd-DVD-x86_64 | ||
- name: OwnerRootProjectTest | ||
namespace: OBS | ||
binary: Ceph | ||
'401': | ||
$ref: '../components/responses/unauthorized.yaml' | ||
'404': | ||
$ref: '../components/responses/unknown_project_or_package.yaml' | ||
tags: | ||
- Sources - Files | ||
|
||
post: | ||
summary: Add an attribute | ||
description: | | ||
Add an attribute with binary to a package | ||
security: | ||
- basic_authentication: [] | ||
parameters: | ||
- $ref: '../components/parameters/project_name.yaml' | ||
- $ref: '../components/parameters/package_name.yaml' | ||
- $ref: '../components/parameters/binary_filename.yaml' | ||
requestBody: | ||
description: Attributes you want to update | ||
content: | ||
application/xml; charset=utf-8: | ||
schema: | ||
$ref: '../components/schemas/source/attributes.yaml' | ||
example: | ||
name: MaintenanceProject | ||
namespace: OBS | ||
binary: Ceph | ||
responses: | ||
'200': | ||
$ref: '../components/responses/succeeded.yaml' | ||
'401': | ||
$ref: '../components/responses/unauthorized.yaml' | ||
'404': | ||
$ref: '../components/responses/unknown_project_or_package.yaml' | ||
tags: | ||
- Sources - Files |