cloudapi/v2: introduce multi build composes

This only extends the API, the backend can still only deal with composes of a single build.

I aimed to keep the API practically backwards compatible, i.e., no current consumer of it should notice the change. I hope I didn't mess that up.

fixup: image statuses
This commit is contained in:
Tom Gundersen 2022-01-26 17:38:28 +00:00
parent c1dc9d7284
commit 9fba2dcc5d
3 changed files with 99 additions and 70 deletions

View file

@ -357,6 +357,10 @@ components:
$ref: '#/components/schemas/ComposeStatusValue'
image_status:
$ref: '#/components/schemas/ImageStatus'
image_statuses:
type: array
items:
$ref: '#/components/schemas/ImageStatus'
koji_status:
$ref: '#/components/schemas/KojiStatus'
ComposeStatusValue:
@ -491,13 +495,16 @@ components:
ComposeRequest:
required:
- distribution
- image_request
properties:
distribution:
type: string
example: 'rhel-8'
image_request:
$ref: '#/components/schemas/ImageRequest'
image_requests:
type: array
items:
$ref: '#/components/schemas/ImageRequest'
customizations:
$ref: '#/components/schemas/Customizations'
koji: