Skip to content

Commit 9ac1042

Browse files
committed
fix: Add missing expands
1 parent 3bbb6da commit 9ac1042

File tree

5 files changed

+96
-12
lines changed

5 files changed

+96
-12
lines changed

backend/schema/paths/nginx/certificates/certID/get.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"operationId": "getCertificate",
33
"summary": "Get a Certificate",
4-
"tags": ["certificates"],
4+
"tags": [
5+
"certificates"
6+
],
57
"security": [
68
{
7-
"bearerAuth": ["certificates.view"]
9+
"bearerAuth": [
10+
"certificates.view"
11+
]
812
}
913
],
1014
"parameters": [
@@ -18,6 +22,17 @@
1822
},
1923
"required": true,
2024
"example": 1
25+
},
26+
{
27+
"in": "query",
28+
"name": "expand",
29+
"description": "Expansions",
30+
"schema": {
31+
"type": "string",
32+
"enum": [
33+
"owner"
34+
]
35+
}
2136
}
2237
],
2338
"responses": {
@@ -34,7 +49,9 @@
3449
"owner_user_id": 1,
3550
"provider": "letsencrypt",
3651
"nice_name": "test.example.com",
37-
"domain_names": ["test.example.com"],
52+
"domain_names": [
53+
"test.example.com"
54+
],
3855
"expires_on": "2025-01-07T04:34:18.000Z",
3956
"meta": {
4057
"dns_challenge": false

backend/schema/paths/nginx/dead-hosts/hostID/get.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"operationId": "getDeadHost",
33
"summary": "Get a 404 Host",
4-
"tags": ["404-hosts"],
4+
"tags": [
5+
"404-hosts"
6+
],
57
"security": [
68
{
7-
"bearerAuth": ["dead_hosts.view"]
9+
"bearerAuth": [
10+
"dead_hosts.view"
11+
]
812
}
913
],
1014
"parameters": [
@@ -18,6 +22,18 @@
1822
},
1923
"required": true,
2024
"example": 1
25+
},
26+
{
27+
"in": "query",
28+
"name": "expand",
29+
"description": "Expansions",
30+
"schema": {
31+
"type": "string",
32+
"enum": [
33+
"owner",
34+
"certificate"
35+
]
36+
}
2137
}
2238
],
2339
"responses": {
@@ -32,7 +48,9 @@
3248
"created_on": "2024-10-09T01:38:52.000Z",
3349
"modified_on": "2024-10-09T01:38:52.000Z",
3450
"owner_user_id": 1,
35-
"domain_names": ["test.example.com"],
51+
"domain_names": [
52+
"test.example.com"
53+
],
3654
"certificate_id": 0,
3755
"ssl_forced": false,
3856
"advanced_config": "",

backend/schema/paths/nginx/proxy-hosts/hostID/get.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"operationId": "getProxyHost",
33
"summary": "Get a Proxy Host",
4-
"tags": ["proxy-hosts"],
4+
"tags": [
5+
"proxy-hosts"
6+
],
57
"security": [
68
{
79
"bearerAuth": [
@@ -20,6 +22,19 @@
2022
},
2123
"required": true,
2224
"example": 1
25+
},
26+
{
27+
"in": "query",
28+
"name": "expand",
29+
"description": "Expansions",
30+
"schema": {
31+
"type": "string",
32+
"enum": [
33+
"access_list",
34+
"owner",
35+
"certificate"
36+
]
37+
}
2338
}
2439
],
2540
"responses": {

backend/schema/paths/nginx/redirection-hosts/hostID/get.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"operationId": "getRedirectionHost",
33
"summary": "Get a Redirection Host",
4-
"tags": ["redirection-hosts"],
4+
"tags": [
5+
"redirection-hosts"
6+
],
57
"security": [
68
{
7-
"bearerAuth": ["redirection_hosts.view"]
9+
"bearerAuth": [
10+
"redirection_hosts.view"
11+
]
812
}
913
],
1014
"parameters": [
@@ -18,6 +22,18 @@
1822
},
1923
"required": true,
2024
"example": 1
25+
},
26+
{
27+
"in": "query",
28+
"name": "expand",
29+
"description": "Expansions",
30+
"schema": {
31+
"type": "string",
32+
"enum": [
33+
"owner",
34+
"certificate"
35+
]
36+
}
2137
}
2238
],
2339
"responses": {
@@ -32,7 +48,9 @@
3248
"created_on": "2024-10-09T01:13:12.000Z",
3349
"modified_on": "2024-10-09T01:13:13.000Z",
3450
"owner_user_id": 1,
35-
"domain_names": ["test.example.com"],
51+
"domain_names": [
52+
"test.example.com"
53+
],
3654
"forward_domain_name": "something-else.com",
3755
"preserve_path": false,
3856
"certificate_id": 0,

backend/schema/paths/nginx/streams/streamID/get.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"operationId": "getStream",
33
"summary": "Get a Stream",
4-
"tags": ["streams"],
4+
"tags": [
5+
"streams"
6+
],
57
"security": [
68
{
7-
"bearerAuth": ["streams.view"]
9+
"bearerAuth": [
10+
"streams.view"
11+
]
812
}
913
],
1014
"parameters": [
@@ -18,6 +22,18 @@
1822
},
1923
"required": true,
2024
"example": 2
25+
},
26+
{
27+
"in": "query",
28+
"name": "expand",
29+
"description": "Expansions",
30+
"schema": {
31+
"type": "string",
32+
"enum": [
33+
"owner",
34+
"certificate"
35+
]
36+
}
2137
}
2238
],
2339
"responses": {

0 commit comments

Comments
 (0)