diff --git a/public/openapi/bindapi.json b/public/openapi/bindapi.json index 2d7476a..1a3bb89 100644 --- a/public/openapi/bindapi.json +++ b/public/openapi/bindapi.json @@ -106,13 +106,13 @@ } } }, - "/domains/{name}": { + "/domains/{id}": { "get": { "tags": [ "Domains" ], "summary": "Returns a single domain.", - "description": "Returns information of a single domain specified by its domain name.", + "description": "Returns information of a single domain specified by its ID.", "operationId": "getSingleDomain", "parameters": [ { @@ -207,6 +207,37 @@ } ] } + }, + "/domains/name/{name}": { + "get": { + "tags": [ + "Domains" + ], + "summary": "Returns a single domain by name.", + "description": "Returns information of a single domain specified by its domain name.", + "operationId": "getSingleDomain", + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/200-ok" + }, + "400": { + "$ref": "#/components/responses/400-bad-request" + }, + "401": { + "$ref": "#/components/responses/401-unauthorized" + } + } + } } }, "components": {