Compare commits

..

No commits in common. "1cfd2bc91c140746890e25eab81c03c69b75bde9" and "f70e87afce3ccfc962e1f7489b70f56931f7d0df" have entirely different histories.

3 changed files with 23 additions and 34 deletions

View File

@ -106,13 +106,13 @@
}
}
},
"/domains/{id}": {
"/domains/{name}": {
"get": {
"tags": [
"Domains"
],
"summary": "Returns a single domain.",
"description": "Returns information of a single domain specified by its ID.",
"description": "Returns information of a single domain specified by its domain name.",
"operationId": "getSingleDomain",
"parameters": [
{
@ -207,37 +207,6 @@
}
]
}
},
"/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": {

View File

@ -9,6 +9,26 @@
<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>

View File

@ -295,7 +295,7 @@ class RequestController
if (empty($this->uri[3])) {
$this->handleAllDomainsGetRequest();
} else {
if ($result = $this->domainRepository->findById(id: $this->uri[3])) {
if ($result = $this->domainRepository->findByName(name: $this->uri[3])) {
$domain = [
'id' => $result->getId(),
'name' => $result->getName(),