mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
feat(api): enhance OpenAPI specifications with token variable and additional key attributes
This commit is contained in:
1 parent
4ea00cff31
commit
3160b8a5a5
3 files changed
+24
-2
No files matched your search
@@ -5,7 +5,9 @@ namespace App\Http\Controllers\Api;
|
||||
use OpenApi\Attributes as OA;
|
||||
|
||||
#[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.')]
|
||||
#[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: [
|
||||
new OA\ServerVariable('token', 'your-coolify-token-here', 'Coolify token for authentication'),
|
||||
])]
|
||||
#[OA\SecurityScheme(
|
||||
type: 'http',
|
||||
scheme: 'bearer',
|
||||
|
||||
Reference in new issue
Block a user