Compare commits
3 Commits
f70e87afce
...
1cfd2bc91c
Author | SHA1 | Date |
---|---|---|
tracer | 1cfd2bc91c | |
tracer | a92bff0502 | |
tracer | d6cdc7b5a2 |
|
@ -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": {
|
||||
|
|
|
@ -9,26 +9,6 @@
|
|||
|
||||
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32"/>
|
||||
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16"/>
|
||||
<style>
|
||||
html {
|
||||
box-sizing: border-box;
|
||||
overflow: -moz-scrollbars-vertical;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
|
||||
*,
|
||||
*:before,
|
||||
*:after {
|
||||
box-sizing: inherit;
|
||||
|
||||
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #fafafa;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -295,7 +295,7 @@ class RequestController
|
|||
if (empty($this->uri[3])) {
|
||||
$this->handleAllDomainsGetRequest();
|
||||
} else {
|
||||
if ($result = $this->domainRepository->findByName(name: $this->uri[3])) {
|
||||
if ($result = $this->domainRepository->findById(id: $this->uri[3])) {
|
||||
$domain = [
|
||||
'id' => $result->getId(),
|
||||
'name' => $result->getName(),
|
||||
|
|
Loading…
Reference in New Issue