Skip to content

Commit

Permalink
updated domain names endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Oct 15, 2024
1 parent 3578694 commit e668f68
Showing 1 changed file with 33 additions and 32 deletions.
65 changes: 33 additions & 32 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ info:
- The registration code obtained through this API is essential for completing the domain registration process with authorized registrars. This code serves as a password and should be kept confidential until provided to the chosen registrar.
- Most endpoints require the token to be included in the Authorization header as a Bearer token. This token is initially provided when reserving a domain.
- Access to all endpoints in this API is restricted to authorized IP addresses only.
- All requests to this API must include an 'Origin' header specifying the hostname of the client.
Security:
- All communication with this API should be conducted over HTTPS to ensure data privacy and integrity.
Expand All @@ -47,37 +48,37 @@ servers:
description: Main API server

paths:
/business_registry/domain_names:
get:
summary: Get available domain name variants
description: |
Generates and returns a list of available domain name variants based on the organization name.
Note: This endpoint does not require a token, but access is restricted to authorized IP addresses only.
parameters:
- in: query
name: organization_name
required: true
schema:
type: string
description: Organization name to generate domain name variants
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
variants:
type: array
items:
type: string
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/business_registry/domain_names/{organization_name}:
get:
summary: Get available domain name variants
description: |
Generates and returns a list of available domain name variants based on the organization name.
Note: This endpoint does not require a token, but access is restricted to authorized IP addresses only.
parameters:
- in: path
name: organization_name
required: true
schema:
type: string
description: Organization name to generate domain name variants
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
variants:
type: array
items:
type: string
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'

/business_registry/refresh_token:
patch:
Expand Down Expand Up @@ -276,4 +277,4 @@ components:
details:
type: array
items:
type: string
type: string

0 comments on commit e668f68

Please sign in to comment.