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-923) Add check custom domains endpoint #685

Merged
merged 1 commit into from
Aug 7, 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
99 changes: 99 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6746,6 +6746,27 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'/application/{applicationId}/customDomain/check':
get:
summary: Check Application Custom Domain
operationId: checkApplicationCustomDomain
parameters:
- $ref: '#/components/parameters/applicationId'
tags:
- Custom Domain
responses:
'200':
description: Check Application Custom Domain
content:
application/json:
schema:
$ref: '#/components/schemas/CheckedCustomDomainsResponse'
'401':
$ref: '#/components/responses/401'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'/application/{applicationId}/log':
get:
summary: List logs
Expand Down Expand Up @@ -7697,6 +7718,27 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'/container/{containerId}/customDomain/check':
get:
summary: Check Container Custom Domain
operationId: checkContainerCustomDomain
parameters:
- $ref: '#/components/parameters/containerId'
tags:
- Custom Domain
responses:
'200':
description: Check Container Custom Domain
content:
application/json:
schema:
$ref: '#/components/schemas/CheckedCustomDomainsResponse'
'401':
$ref: '#/components/responses/401'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'/container/{containerId}/log':
get:
summary: List logs
Expand Down Expand Up @@ -9201,6 +9243,28 @@ paths:
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'
'/helm/{helmId}/customDomain/check':
get:
summary: Check Helm Custom Domain
operationId: checkHelmCustomDomain
parameters:
- $ref: '#/components/parameters/helmId'
tags:
- Custom Domain
responses:
'200':
description: Check Helm Custom Domain
content:
application/json:
schema:
$ref: '#/components/schemas/CheckedCustomDomainsResponse'
'401':
$ref: '#/components/responses/401'
'403':
$ref: '#/components/responses/403'
'404':
$ref: '#/components/responses/404'

'/environment/{environmentId}/checkDockerfile':
post:
summary: Check dockerfile configuration is correct
Expand Down Expand Up @@ -18648,6 +18712,41 @@ components:
type: array
items:
$ref: '#/components/schemas/ContainerRegistryAssociatedServicesResponse'
CheckedCustomDomainsResponse:
title: CheckedCustomDomainsResponse
type: object
required:
- results
properties:
results:
type: array
items:
$ref: '#/components/schemas/CheckedCustomDomainResponse'
CheckedCustomDomainStatus:
type: string
enum:
- RESOLVES_TO_IP
- MATCHES_LOAD_BALANCER_HOST
- DOMAIN_NOT_CONFIGURED
- DOMAIN_LINKED_TO_WRONG_HOST
- GENERIC_FAILURE
CheckedCustomDomainResponse:
title: CheckedCustomDomainResponse
type: object
required:
- domain_name
- status
properties:
domain_name:
type: string
description: domain name checked
example: my.domain.tld
status:
$ref: '#/components/schemas/CheckedCustomDomainStatus'
error_details:
type: string
nullable: true
description: optional field containing information about failure check
ContainerRegistryAssociatedServicesResponse:
title: ContainerRegistryAssociatedServicesResponse
x-stoplight:
Expand Down
Loading