Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(COR-871)/add associated services to container registry response #670

Merged
merged 8 commits into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10585,6 +10585,38 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'/organization/{organizationId}/containerRegistry/{containerRegistryId}/associatedServices':
parameters:
- schema:
type: string
name: organizationId
in: path
required: true
- schema:
type: string
name: containerRegistryId
in: path
required: true
get:
summary: Get organization container registry associated services
tags: []
responses:
'200':
description: Get organization container registry associated services
content:
application/json:
schema:
$ref: '#/components/schemas/ContainerRegistryAssociatedServicesResponseList'
'401':
description: Access token is missing or invalid
'403':
description: Access forbidden
'404':
description: Resource not found
operationId: getContainerRegistryAssociatedServices
x-stoplight:
id: dgh8t73nqaetm
description: Get organization container registry associated services
components:
parameters:
applicationId:
Expand Down Expand Up @@ -12998,6 +13030,11 @@ components:
type: string
x-stoplight:
id: 5jak2m85ljxaa
associated_services_count:
type: integer
x-stoplight:
id: 02mqr04rogfem
description: The number of services using this container registry
ContainerRegistryProviderDetailsResponse:
type: object
required:
Expand Down Expand Up @@ -18436,6 +18473,64 @@ components:
x-stoplight:
id: 0xkypu9qkowv3
description: Dockerfile of the template
ContainerRegistryAssociatedServicesResponseList:
title: ContainerRegistryAssociatedServicesResponseList
x-stoplight:
id: xn1fsp17ahwfi
type: object
properties:
results:
$ref: '#/components/schemas/ContainerRegistryAssociatedServicesResponse'
ContainerRegistryAssociatedServicesResponse:
title: ContainerRegistryAssociatedServicesResponse
x-stoplight:
id: uxbkfqdj9zyi6
type: object
required:
- project_id
- project_name
- environment_id
- environment_name
- service_id
- service_name
- service_type
properties:
project_id:
type: string
x-stoplight:
id: 9jdx3t62nttjz
format: uuid
project_name:
type: string
x-stoplight:
id: cjlfx1ucomdv9
environment_id:
type: string
x-stoplight:
id: gk5r4dcoliuac
format: uuid
environment_name:
type: string
x-stoplight:
id: kxry5d624susz
service_id:
type: string
x-stoplight:
id: kmouxjf3vbtjo
format: uuid
service_name:
type: string
x-stoplight:
id: ga0yqhtmi4nl6
service_type:
$ref: '#/components/schemas/ContainerRegistryAssociatedServiceType'
ContainerRegistryAssociatedServiceType:
title: ContainerRegistryAssociatedServiceType
x-stoplight:
id: dif8pj1ys444y
enum:
- CONTAINER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only a container ? Jobs can also be linked iiuc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes! I've forgotten it in the Core

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

- JOB
responses:
'204':
description: no content
Expand Down
Loading