Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactor(api): remove token variable from OpenAPI specifications for clarity

Andras Bacsai1d52df0e4eb8
diff --git a/app/Http/Controllers/Api/OpenApi.php b/app/Http/Controllers/Api/OpenApi.php
index ee75c1c6c0..60337a76cf 100644
--- a/app/Http/Controllers/Api/OpenApi.php
+++ b/app/Http/Controllers/Api/OpenApi.php
@@ -5,9 +5,7 @@ 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.', variables: [
- new OA\ServerVariable('token', 'your-coolify-token-here', 'Coolify token for authentication'),
-])]
+#[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\SecurityScheme(
type: 'http',
scheme: 'bearer',
diff --git a/openapi.json b/openapi.json
index 7f1aa637bd..b48bd85e9b 100644
--- a/openapi.json
+++ b/openapi.json
@@ -7,13 +7,7 @@
"servers": [
{
"url": "https:\/\/app.coolify.io\/api\/v1",
- "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"
- }
- }
+ "description": "Coolify Cloud API. Change the host to your own instance if you are self-hosting."
}
],
"paths": {
diff --git a/openapi.yaml b/openapi.yaml
index 07e1f82c25..239da68201 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -6,10 +6,6 @@ servers:
-
url: 'https://app.coolify.io/api/v1'
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:
/applications:
get: