Skip to content

Commit

Permalink
fix: domains endpoint - missing and incorrect fields (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
trgalho authored Apr 10, 2024
1 parent 90dc9cb commit 093796e
Showing 1 changed file with 59 additions and 108 deletions.
167 changes: 59 additions & 108 deletions domains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ paths:
"200":
description: Successful response
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/DomainResponseWithResults"
"400":
Expand All @@ -79,7 +79,7 @@ paths:
description: It enables you to include a new domain into an account.
requestBody:
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/CreateDomainRequest"
operationId: createDomain
Expand All @@ -98,7 +98,7 @@ paths:
"200":
description: Successful response
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/DomainResponseWithResult"
"400":
Expand Down Expand Up @@ -136,7 +136,7 @@ paths:
"200":
description: Successful response
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/DomainResponseWithResult"
"400":
Expand Down Expand Up @@ -193,7 +193,7 @@ paths:
instead of PUT.
requestBody:
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/PutDomainRequest"
operationId: putDomain
Expand All @@ -217,7 +217,7 @@ paths:
"200":
description: Successful response
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/DomainResponseWithResult"
"400":
Expand All @@ -241,7 +241,7 @@ paths:
fields not informed.
requestBody:
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/UpdateDomainRequest"
operationId: updateDomain
Expand All @@ -265,7 +265,7 @@ paths:
"200":
description: Successful response
content:
application/json; version=3:
'application/json; version=3':
schema:
$ref: "#/components/schemas/DomainResponseWithResult"
"400":
Expand All @@ -282,83 +282,82 @@ paths:
description: Internal Server Error
components:
schemas:
CreateDomainRequest:
additionalProperties: false
DomainData:
type: object
properties:
cnames:
type: array
items:
type: string
cname_access_only:
type: boolean
name:
type: string
is_active:
type: boolean
edge_application_id:
format: int64
type: integer
digital_certificate_id:
format: int64
type: integer
nullable: true
required:
- name
- edge_application_id
- cname_access_only
- cnames
- is_active
- digital_certificate_id
type: object
UpdateDomainRequest:
additionalProperties: false
properties:
minLength: 1
maxLength: 100
pattern: "[a-zA-Z0-9$%^&*()-+=\\[\\]{};:?><,|/]+"
cnames:
type: array
items:
type: string
cname_access_only:
type: boolean
name:
type: string
is_active:
type: boolean
edge_application_id:
format: int64
type: integer
minimum: 1
maximum: 10000000000000000000
digital_certificate_id:
format: int64
type: integer
nullable: true
type: object
PutDomainRequest:
additionalProperties: false
properties:
cnames:
type: array
items:
type: string
cname_access_only:
type: boolean
name:
environment:
type: string
is_active:
enum:
- production
- preview
is_mtls_enabled:
type: boolean
edge_application_id:
format: int64
mtls_trusted_ca_certificate_id:
type: integer
digital_certificate_id:
format: int64
type: integer
nullable: true
mtls_verification:
type: string
enum:
- enforce
- permissive
crl_list:
nullable: true
type: array
items:
type: integer
format: int64
DomainEntity:
allOf:
- type: object
properties:
id:
type: integer
format: int64
domain_name:
type: string
- $ref: "#/components/schemas/DomainData"
CreateDomainRequest:
allOf:
- $ref: "#/components/schemas/DomainData"
additionalProperties: false
required:
- name
- edge_application_id
- cnames
UpdateDomainRequest:
allOf:
- $ref: "#/components/schemas/DomainData"
PutDomainRequest:
allOf:
- $ref: "#/components/schemas/DomainData"
additionalProperties: false
required:
- name
- edge_application_id
- cname_access_only
- cnames
- is_active
- digital_certificate_id
type: object
DomainLinks:
additionalProperties: false
properties:
Expand Down Expand Up @@ -388,7 +387,7 @@ components:
$ref: "#/components/schemas/DomainLinks"
results:
items:
$ref: "#/components/schemas/DomainResults"
$ref: "#/components/schemas/DomainEntity"
required:
- count
- total_pages
Expand All @@ -405,7 +404,7 @@ components:
links:
$ref: "#/components/schemas/DomainLinks"
results:
$ref: "#/components/schemas/DomainResults"
$ref: "#/components/schemas/DomainEntity"
total_pages:
format: int64
type: integer
Expand All @@ -416,54 +415,6 @@ components:
- schema_version
- results
type: object
DomainResults:
additionalProperties: false
properties:
id:
format: int64
type: integer
name:
type: string
cnames:
type: array
items:
type: string
cname_access_only:
type: boolean
is_active:
type: boolean
edge_application_id:
format: int64
type: integer
digital_certificate_id:
format: int64
type: integer
nullable: true
domain_name:
type: string
environment:
type: string
is_mtls_enabled:
type: boolean
mtls_trusted_ca_certificate_id:
type: string
nullable: true
mtls_verification:
type: string
nullable: true
required:
- id
- name
- cnames
- cname_access_only
- digital_certificate_id
- edge_application_id
- is_active
- domain_name
- is_mtls_enabled
- mtls_verification
- mtls_trusted_ca_certificate_id
type: object
securitySchemes:
tokenAuth:
type: apiKey
Expand Down

0 comments on commit 093796e

Please sign in to comment.