changed endpoints to id
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
a92bff0502
commit
1cfd2bc91c
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue