Skip to content

Commit

Permalink
feat(cor-923) Add check custom domains endpoint (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzottola authored Aug 7, 2024
1 parent 213ee01 commit 80c3925
Showing 1 changed file with 99 additions and 0 deletions.
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

0 comments on commit 80c3925

Please sign in to comment.