refactor(api): remove token variable from OpenAPI specifications for clarity
This commit is contained in:
@@ -5,9 +5,7 @@ namespace App\Http\Controllers\Api;
|
|||||||
use OpenApi\Attributes as OA;
|
use OpenApi\Attributes as OA;
|
||||||
|
|
||||||
#[OA\Info(title: 'Coolify', version: '0.1')]
|
#[OA\Info(title: 'Coolify', version: '0.1')]
|
||||||
#[OA\Server(url: 'https://app.coolify.io/api/v1', description: 'Coolify Cloud API. Change the host to your own instance if you are self-hosting.', variables: [
|
#[OA\Server(url: 'https://app.coolify.io/api/v1', description: 'Coolify Cloud API. Change the host to your own instance if you are self-hosting.')]
|
||||||
new OA\ServerVariable('token', 'your-coolify-token-here', 'Coolify token for authentication'),
|
|
||||||
])]
|
|
||||||
#[OA\SecurityScheme(
|
#[OA\SecurityScheme(
|
||||||
type: 'http',
|
type: 'http',
|
||||||
scheme: 'bearer',
|
scheme: 'bearer',
|
||||||
|
@@ -7,13 +7,7 @@
|
|||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
"url": "https:\/\/app.coolify.io\/api\/v1",
|
"url": "https:\/\/app.coolify.io\/api\/v1",
|
||||||
"description": "Coolify Cloud API. Change the host to your own instance if you are self-hosting.",
|
"description": "Coolify Cloud API. Change the host to your own instance if you are self-hosting."
|
||||||
"variables": {
|
|
||||||
"token": {
|
|
||||||
"default": "Coolify token for authentication",
|
|
||||||
"description": "your-coolify-token-here"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
|
@@ -6,10 +6,6 @@ servers:
|
|||||||
-
|
-
|
||||||
url: 'https://app.coolify.io/api/v1'
|
url: 'https://app.coolify.io/api/v1'
|
||||||
description: 'Coolify Cloud API. Change the host to your own instance if you are self-hosting.'
|
description: 'Coolify Cloud API. Change the host to your own instance if you are self-hosting.'
|
||||||
variables:
|
|
||||||
token:
|
|
||||||
default: 'Coolify token for authentication'
|
|
||||||
description: your-coolify-token-here
|
|
||||||
paths:
|
paths:
|
||||||
/applications:
|
/applications:
|
||||||
get:
|
get:
|
||||||
|
Reference in New Issue
Block a user