Skip to content

Commit efc57e4

Browse files
authored
📝 Fix api documentation urls (#2457)
1 parent d71cddf commit efc57e4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

app/Http/Controllers/API/v1/Controller.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* )
3131
*
3232
* @OA\Server(
33-
* url=L5_SWAGGER_CONST_HOST,
33+
* url=L5_SWAGGER_CONST_ENDPOINT,
3434
* description="This instance"
3535
* )
3636
*

config/l5-swagger.php

+1
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@
288288
*/
289289
'constants' => [
290290
'L5_SWAGGER_CONST_HOST' => env('L5_SWAGGER_CONST_HOST', 'http://localhost:8000'),
291+
'L5_SWAGGER_CONST_ENDPOINT' => env('L5_SWAGGER_CONST_HOST', 'http://localhost:8000') . '/api/v1',
291292
],
292293
],
293294
];

storage/api-docs/api-docs.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"description": "Production Server"
1919
},
2020
{
21-
"url": "http://localhost:8000",
21+
"url": "https://traewelling.de/api/v1",
2222
"description": "This instance"
2323
}
2424
],
@@ -5949,9 +5949,9 @@
59495949
"scheme": "https",
59505950
"flows": {
59515951
"authorizationCode": {
5952-
"authorizationUrl": "http://localhost:8000/oauth/authorize",
5953-
"tokenUrl": "http://localhost:8000/oauth/token",
5954-
"refreshUrl": "http://localhost:8000/auth/refresh",
5952+
"authorizationUrl": "https://traewelling.de/oauth/authorize",
5953+
"tokenUrl": "https://traewelling.de/oauth/token",
5954+
"refreshUrl": "https://traewelling.de/auth/refresh",
59555955
"scopes": {
59565956
"read-statuses": "see all statuses",
59575957
"read-notifications": "see your notifications",
@@ -6043,4 +6043,4 @@
60436043
"description": "Manage Webhooks for third party applications"
60446044
}
60456045
]
6046-
}
6046+
}

0 commit comments

Comments
 (0)