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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(api): correct OpenAPI schema annotations for array items
Andras Bacsaidb2d44ca1ff1
diff --git a/app/Http/Controllers/Api/DatabasesController.php b/app/Http/Controllers/Api/DatabasesController.phpindex 0e282fccd3..5871f481a9 100644--- a/app/Http/Controllers/Api/DatabasesController.php+++ b/app/Http/Controllers/Api/DatabasesController.php@@ -2173,7 +2173,7 @@ class DatabasesController extends Controllerproperties: ['executions' => new OA\Schema(type: 'array',- items: new OA\Schema(+ items: new OA\Items(type: 'object',properties: ['uuid' => ['type' => 'string'],diff --git a/app/Http/Controllers/Api/GithubController.php b/app/Http/Controllers/Api/GithubController.phpindex 8c95a585f3..8c8c872386 100644--- a/app/Http/Controllers/Api/GithubController.php+++ b/app/Http/Controllers/Api/GithubController.php@@ -219,9 +219,9 @@ class GithubController extends Controllerschema: new OA\Schema(type: 'object',properties: [- 'repositories' => new OA\Items(+ 'repositories' => new OA\Schema(type: 'array',- items: new OA\Schema(type: 'object')+ items: new OA\Items(type: 'object')),])@@ -335,9 +335,9 @@ class GithubController extends Controllerschema: new OA\Schema(type: 'object',properties: [- 'branches' => new OA\Items(+ 'branches' => new OA\Schema(type: 'array',- items: new OA\Schema(type: 'object')+ items: new OA\Items(type: 'object')),])diff --git a/openapi.json b/openapi.jsonindex 2b0a81c6e6..901741dd08 100644--- a/openapi.json+++ b/openapi.json@@ -3309,6 +3309,55 @@]}},+ "\/databases\/{uuid}\/backups": {+ "get": {+ "tags": [+ "Databases"+ ],+ "summary": "Get",+ "description": "Get backups details by database UUID.",+ "operationId": "get-database-backups-by-uuid",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "UUID of the database.",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "Get all backups for a database",+ "content": {+ "application\/json": {+ "schema": {+ "type": "string"+ },+ "example": "Content is very complex. Will be implemented later."+ }+ }+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ },+ "404": {+ "$ref": "#\/components\/responses\/404"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },"\/databases\/{uuid}": {"get": {"tags": [@@ -3658,6 +3707,200 @@]}},+ "\/databases\/{uuid}\/backups\/{scheduled_backup_uuid}": {+ "delete": {+ "tags": [+ "Databases"+ ],+ "summary": "Delete backup configuration",+ "description": "Deletes a backup configuration and all its executions.",+ "operationId": "delete-backup-configuration-by-uuid",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "UUID of the database",+ "required": true,+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "scheduled_backup_uuid",+ "in": "path",+ "description": "UUID of the backup configuration to delete",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ },+ {+ "name": "delete_s3",+ "in": "query",+ "description": "Whether to delete all backup files from S3",+ "required": false,+ "schema": {+ "type": "boolean",+ "default": false+ }+ }+ ],+ "responses": {+ "200": {+ "description": "Backup configuration deleted.",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "": {+ "type": "string",+ "example": "Backup configuration and all executions deleted."+ }+ },+ "type": "object"+ }+ }+ }+ },+ "404": {+ "description": "Backup configuration not found.",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "": {+ "type": "string",+ "example": "Backup configuration not found."+ }+ },+ "type": "object"+ }+ }+ }+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ },+ "patch": {+ "tags": [+ "Databases"+ ],+ "summary": "Update",+ "description": "Update a specific backup configuration for a given database, identified by its UUID and the backup ID",+ "operationId": "update-database-backup",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "UUID of the database.",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ },+ {+ "name": "scheduled_backup_uuid",+ "in": "path",+ "description": "UUID of the backup configuration.",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "requestBody": {+ "description": "Database backup configuration data",+ "required": true,+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "save_s3": {+ "type": "boolean",+ "description": "Whether data is saved in s3 or not"+ },+ "s3_storage_uuid": {+ "type": "string",+ "description": "S3 storage UUID"+ },+ "backup_now": {+ "type": "boolean",+ "description": "Whether to take a backup now or not"+ },+ "enabled": {+ "type": "boolean",+ "description": "Whether the backup is enabled or not"+ },+ "databases_to_backup": {+ "type": "string",+ "description": "Comma separated list of databases to backup"+ },+ "dump_all": {+ "type": "boolean",+ "description": "Whether all databases are dumped or not"+ },+ "frequency": {+ "type": "string",+ "description": "Frequency of the backup"+ },+ "database_backup_retention_amount_locally": {+ "type": "integer",+ "description": "Retention amount of the backup locally"+ },+ "database_backup_retention_days_locally": {+ "type": "integer",+ "description": "Retention days of the backup locally"+ },+ "database_backup_retention_max_storage_locally": {+ "type": "integer",+ "description": "Max storage of the backup locally"+ },+ "database_backup_retention_amount_s3": {+ "type": "integer",+ "description": "Retention amount of the backup in s3"+ },+ "database_backup_retention_days_s3": {+ "type": "integer",+ "description": "Retention days of the backup in s3"+ },+ "database_backup_retention_max_storage_s3": {+ "type": "integer",+ "description": "Max storage of the backup in S3"+ }+ },+ "type": "object"+ }+ }+ }+ },+ "responses": {+ "200": {+ "description": "Database backup configuration updated"+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ },+ "404": {+ "$ref": "#\/components\/responses\/404"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },"\/databases\/postgresql": {"post": {"tags": [@@ -4694,36 +4937,65 @@]}},- "\/databases\/{uuid}\/start": {- "get": {+ "\/databases\/{uuid}\/backups\/{scheduled_backup_uuid}\/executions\/{execution_uuid}": {+ "delete": {"tags": ["Databases"],- "summary": "Start",- "description": "Start database. `Post` request is also accepted.",- "operationId": "start-database-by-uuid",+ "summary": "Delete backup execution",+ "description": "Deletes a specific backup execution.",+ "operationId": "delete-backup-execution-by-uuid","parameters": [{"name": "uuid","in": "path",- "description": "UUID of the database.",+ "description": "UUID of the database",+ "required": true,+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "scheduled_backup_uuid",+ "in": "path",+ "description": "UUID of the backup configuration",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ },+ {+ "name": "execution_uuid",+ "in": "path",+ "description": "UUID of the backup execution to delete","required": true,"schema": {"type": "string","format": "uuid"}+ },+ {+ "name": "delete_s3",+ "in": "query",+ "description": "Whether to delete the backup from S3",+ "required": false,+ "schema": {+ "type": "boolean",+ "default": false+ }}],"responses": {"200": {- "description": "Start database.",+ "description": "Backup execution deleted.","content": {"application\/json": {"schema": {"properties": {- "message": {+ "": {"type": "string",- "example": "Database starting request queued."+ "example": "Backup execution deleted."}},"type": "object"@@ -4731,14 +5003,21 @@}}},- "401": {- "$ref": "#\/components\/responses\/401"- },- "400": {- "$ref": "#\/components\/responses\/400"- },"404": {- "$ref": "#\/components\/responses\/404"+ "description": "Backup execution not found.",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "": {+ "type": "string",+ "example": "Backup execution not found."+ }+ },+ "type": "object"+ }+ }+ }}},"security": [@@ -4748,19 +5027,28 @@]}},- "\/databases\/{uuid}\/stop": {+ "\/databases\/{uuid}\/backups\/{scheduled_backup_uuid}\/executions": {"get": {"tags": ["Databases"],- "summary": "Stop",- "description": "Stop database. `Post` request is also accepted.",- "operationId": "stop-database-by-uuid",+ "summary": "List backup executions",+ "description": "Get all executions for a specific backup configuration.",+ "operationId": "list-backup-executions","parameters": [{"name": "uuid","in": "path",- "description": "UUID of the database.",+ "description": "UUID of the database",+ "required": true,+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "scheduled_backup_uuid",+ "in": "path",+ "description": "UUID of the backup configuration","required": true,"schema": {"type": "string",@@ -4770,7 +5058,131 @@],"responses": {"200": {- "description": "Stop database.",+ "description": "List of backup executions",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "": {+ "type": "array",+ "items": {+ "properties": {+ "uuid": {+ "type": "string"+ },+ "filename": {+ "type": "string"+ },+ "size": {+ "type": "integer"+ },+ "created_at": {+ "type": "string"+ },+ "message": {+ "type": "string"+ },+ "status": {+ "type": "string"+ }+ },+ "type": "object"+ }+ }+ },+ "type": "object"+ }+ }+ }+ },+ "404": {+ "description": "Backup configuration not found."+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/databases\/{uuid}\/start": {+ "get": {+ "tags": [+ "Databases"+ ],+ "summary": "Start",+ "description": "Start database. `Post` request is also accepted.",+ "operationId": "start-database-by-uuid",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "UUID of the database.",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "Start database.",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "message": {+ "type": "string",+ "example": "Database starting request queued."+ }+ },+ "type": "object"+ }+ }+ }+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ },+ "404": {+ "$ref": "#\/components\/responses\/404"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/databases\/{uuid}\/stop": {+ "get": {+ "tags": [+ "Databases"+ ],+ "summary": "Stop",+ "description": "Stop database. `Post` request is also accepted.",+ "operationId": "stop-database-by-uuid",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "UUID of the database.",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "Stop database.","content": {"application\/json": {"schema": {@@ -4839,14 +5251,410 @@}}},- "401": {- "$ref": "#\/components\/responses\/401"- },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ },+ "404": {+ "$ref": "#\/components\/responses\/404"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/deployments": {+ "get": {+ "tags": [+ "Deployments"+ ],+ "summary": "List",+ "description": "List currently running deployments",+ "operationId": "list-deployments",+ "responses": {+ "200": {+ "description": "Get all currently running deployments.",+ "content": {+ "application\/json": {+ "schema": {+ "type": "array",+ "items": {+ "$ref": "#\/components\/schemas\/ApplicationDeploymentQueue"+ }+ }+ }+ }+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/deployments\/{uuid}": {+ "get": {+ "tags": [+ "Deployments"+ ],+ "summary": "Get",+ "description": "Get deployment by UUID.",+ "operationId": "get-deployment-by-uuid",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "Deployment UUID",+ "required": true,+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "Get deployment by UUID.",+ "content": {+ "application\/json": {+ "schema": {+ "$ref": "#\/components\/schemas\/ApplicationDeploymentQueue"+ }+ }+ }+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ },+ "404": {+ "$ref": "#\/components\/responses\/404"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/deploy": {+ "get": {+ "tags": [+ "Deployments"+ ],+ "summary": "Deploy",+ "description": "Deploy by tag or uuid. `Post` request also accepted with `uuid` and `tag` json body.",+ "operationId": "deploy-by-tag-or-uuid",+ "parameters": [+ {+ "name": "tag",+ "in": "query",+ "description": "Tag name(s). Comma separated list is also accepted.",+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "uuid",+ "in": "query",+ "description": "Resource UUID(s). Comma separated list is also accepted.",+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "force",+ "in": "query",+ "description": "Force rebuild (without cache)",+ "schema": {+ "type": "boolean"+ }+ },+ {+ "name": "pr",+ "in": "query",+ "description": "Pull Request Id for deploying specific PR builds. Cannot be used with tag parameter.",+ "schema": {+ "type": "integer"+ }+ }+ ],+ "responses": {+ "200": {+ "description": "Get deployment(s) UUID's",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "deployments": {+ "type": "array",+ "items": {+ "properties": {+ "message": {+ "type": "string"+ },+ "resource_uuid": {+ "type": "string"+ },+ "deployment_uuid": {+ "type": "string"+ }+ },+ "type": "object"+ }+ }+ },+ "type": "object"+ }+ }+ }+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/deployments\/applications\/{uuid}": {+ "get": {+ "tags": [+ "Deployments"+ ],+ "summary": "List application deployments",+ "description": "List application deployments by using the app uuid",+ "operationId": "list-deployments-by-app-uuid",+ "parameters": [+ {+ "name": "uuid",+ "in": "path",+ "description": "UUID of the application.",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ },+ {+ "name": "skip",+ "in": "query",+ "description": "Number of records to skip.",+ "required": false,+ "schema": {+ "type": "integer",+ "default": 0,+ "minimum": 0+ }+ },+ {+ "name": "take",+ "in": "query",+ "description": "Number of records to take.",+ "required": false,+ "schema": {+ "type": "integer",+ "default": 10,+ "minimum": 1+ }+ }+ ],+ "responses": {+ "200": {+ "description": "List application deployments by using the app uuid.",+ "content": {+ "application\/json": {+ "schema": {+ "type": "array",+ "items": {+ "$ref": "#\/components\/schemas\/Application"+ }+ }+ }+ }+ },+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "400": {+ "$ref": "#\/components\/responses\/400"+ }+ },+ "security": [+ {+ "bearerAuth": []+ }+ ]+ }+ },+ "\/github-apps": {+ "post": {+ "tags": [+ "GitHub Apps"+ ],+ "summary": "Create GitHub App",+ "description": "Create a new GitHub app.",+ "operationId": "create-github-app",+ "requestBody": {+ "description": "GitHub app creation payload.",+ "required": true,+ "content": {+ "application\/json": {+ "schema": {+ "required": [+ "name",+ "api_url",+ "html_url",+ "app_id",+ "installation_id",+ "client_id",+ "client_secret",+ "private_key_uuid"+ ],+ "properties": {+ "name": {+ "type": "string",+ "description": "Name of the GitHub app."+ },+ "organization": {+ "type": "string",+ "nullable": true,+ "description": "Organization to associate the app with."+ },+ "api_url": {+ "type": "string",+ "description": "API URL for the GitHub app (e.g., https:\/\/api.github.com)."+ },+ "html_url": {+ "type": "string",+ "description": "HTML URL for the GitHub app (e.g., https:\/\/github.com)."+ },+ "custom_user": {+ "type": "string",+ "description": "Custom user for SSH access (default: git)."+ },+ "custom_port": {+ "type": "integer",+ "description": "Custom port for SSH access (default: 22)."+ },+ "app_id": {+ "type": "integer",+ "description": "GitHub App ID from GitHub."+ },+ "installation_id": {+ "type": "integer",+ "description": "GitHub Installation ID."+ },+ "client_id": {+ "type": "string",+ "description": "GitHub OAuth App Client ID."+ },+ "client_secret": {+ "type": "string",+ "description": "GitHub OAuth App Client Secret."+ },+ "webhook_secret": {+ "type": "string",+ "description": "Webhook secret for GitHub webhooks."+ },+ "private_key_uuid": {+ "type": "string",+ "description": "UUID of an existing private key for GitHub App authentication."+ },+ "is_system_wide": {+ "type": "boolean",+ "description": "Is this app system-wide (cloud only)."+ }+ },+ "type": "object"+ }+ }+ }+ },+ "responses": {+ "201": {+ "description": "GitHub app created successfully.",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "id": {+ "type": "integer"+ },+ "uuid": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "organization": {+ "type": "string",+ "nullable": true+ },+ "api_url": {+ "type": "string"+ },+ "html_url": {+ "type": "string"+ },+ "custom_user": {+ "type": "string"+ },+ "custom_port": {+ "type": "integer"+ },+ "app_id": {+ "type": "integer"+ },+ "installation_id": {+ "type": "integer"+ },+ "client_id": {+ "type": "string"+ },+ "private_key_id": {+ "type": "integer"+ },+ "is_system_wide": {+ "type": "boolean"+ },+ "team_id": {+ "type": "integer"+ }+ },+ "type": "object"+ }+ }+ }+ },"400": {"$ref": "#\/components\/responses\/400"},- "404": {- "$ref": "#\/components\/responses\/404"+ "401": {+ "$ref": "#\/components\/responses\/401"+ },+ "422": {+ "$ref": "#\/components\/responses\/422"}},"security": [@@ -4856,33 +5664,52 @@]}},- "\/deployments": {+ "\/github-apps\/{github_app_id}\/repositories": {"get": {"tags": [- "Deployments"+ "GitHub Apps"+ ],+ "summary": "Load Repositories for a GitHub App",+ "description": "Fetch repositories from GitHub for a given GitHub app.",+ "operationId": "load-repositories",+ "parameters": [+ {+ "name": "github_app_id",+ "in": "path",+ "description": "GitHub App ID",+ "required": true,+ "schema": {+ "type": "integer"+ }+ }],- "summary": "List",- "description": "List currently running deployments",- "operationId": "list-deployments","responses": {"200": {- "description": "Get all currently running deployments.",+ "description": "Repositories loaded successfully.","content": {"application\/json": {"schema": {- "type": "array",- "items": {- "$ref": "#\/components\/schemas\/ApplicationDeploymentQueue"- }+ "properties": {+ "": {+ "type": "array",+ "items": {+ "type": "object"+ }+ }+ },+ "type": "object"}}}},+ "400": {+ "$ref": "#\/components\/responses\/400"+ },"401": {"$ref": "#\/components\/responses\/401"},- "400": {- "$ref": "#\/components\/responses\/400"+ "404": {+ "$ref": "#\/components\/responses\/404"}},"security": [@@ -4892,19 +5719,37 @@]}},- "\/deployments\/{uuid}": {+ "\/github-apps\/{github_app_id}\/repositories\/{owner}\/{repo}\/branches": {"get": {"tags": [- "Deployments"+ "GitHub Apps"],- "summary": "Get",- "description": "Get deployment by UUID.",- "operationId": "get-deployment-by-uuid",+ "summary": "Load Branches for a GitHub Repository",+ "description": "Fetch branches from GitHub for a given repository.",+ "operationId": "load-branches","parameters": [{- "name": "uuid",+ "name": "github_app_id","in": "path",- "description": "Deployment UUID",+ "description": "GitHub App ID",+ "required": true,+ "schema": {+ "type": "integer"+ }+ },+ {+ "name": "owner",+ "in": "path",+ "description": "Repository owner",+ "required": true,+ "schema": {+ "type": "string"+ }+ },+ {+ "name": "repo",+ "in": "path",+ "description": "Repository name","required": true,"schema": {"type": "string"@@ -4913,21 +5758,29 @@],"responses": {"200": {- "description": "Get deployment by UUID.",+ "description": "Branches loaded successfully.","content": {"application\/json": {"schema": {- "$ref": "#\/components\/schemas\/ApplicationDeploymentQueue"+ "properties": {+ "": {+ "type": "array",+ "items": {+ "type": "object"+ }+ }+ },+ "type": "object"}}}},- "401": {- "$ref": "#\/components\/responses\/401"- },"400": {"$ref": "#\/components\/responses\/400"},+ "401": {+ "$ref": "#\/components\/responses\/401"+ },"404": {"$ref": "#\/components\/responses\/404"}@@ -4939,43 +5792,20 @@]}},- "\/deploy": {- "get": {+ "\/github-apps\/{github_app_id}": {+ "delete": {"tags": [- "Deployments"+ "GitHub Apps"],- "summary": "Deploy",- "description": "Deploy by tag or uuid. `Post` request also accepted with `uuid` and `tag` json body.",- "operationId": "deploy-by-tag-or-uuid",+ "summary": "Delete GitHub App",+ "description": "Delete a GitHub app if it's not being used by any applications.",+ "operationId": "deleteGithubApp","parameters": [{- "name": "tag",- "in": "query",- "description": "Tag name(s). Comma separated list is also accepted.",- "schema": {- "type": "string"- }- },- {- "name": "uuid",- "in": "query",- "description": "Resource UUID(s). Comma separated list is also accepted.",- "schema": {- "type": "string"- }- },- {- "name": "force",- "in": "query",- "description": "Force rebuild (without cache)",- "schema": {- "type": "boolean"- }- },- {- "name": "pr",- "in": "query",- "description": "Pull Request Id for deploying specific PR builds. Cannot be used with tag parameter.",+ "name": "github_app_id",+ "in": "path",+ "description": "GitHub App ID",+ "required": true,"schema": {"type": "integer"}@@ -4983,27 +5813,14 @@],"responses": {"200": {- "description": "Get deployment(s) UUID's",+ "description": "GitHub app deleted successfully","content": {"application\/json": {"schema": {"properties": {- "deployments": {- "type": "array",- "items": {- "properties": {- "message": {- "type": "string"- },- "resource_uuid": {- "type": "string"- },- "deployment_uuid": {- "type": "string"- }- },- "type": "object"- }+ "message": {+ "type": "string",+ "example": "GitHub app deleted successfully"}},"type": "object"@@ -5012,10 +5829,26 @@}},"401": {- "$ref": "#\/components\/responses\/401"+ "description": "Unauthorized"},- "400": {- "$ref": "#\/components\/responses\/400"+ "404": {+ "description": "GitHub app not found"+ },+ "409": {+ "description": "Conflict - GitHub app is in use",+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "message": {+ "type": "string",+ "example": "This GitHub app is being used by 5 application(s). Please delete all applications first."+ }+ },+ "type": "object"+ }+ }+ }}},"security": [@@ -5023,69 +5856,119 @@"bearerAuth": []}]- }- },- "\/deployments\/applications\/{uuid}": {- "get": {+ },+ "patch": {"tags": [- "Deployments"+ "GitHub Apps"],- "summary": "List application deployments",- "description": "List application deployments by using the app uuid",- "operationId": "list-deployments-by-app-uuid",+ "summary": "Update GitHub App",+ "description": "Update an existing GitHub app.",+ "operationId": "updateGithubApp","parameters": [{- "name": "uuid",+ "name": "github_app_id","in": "path",- "description": "UUID of the application.",+ "description": "GitHub App ID","required": true,"schema": {- "type": "string",- "format": "uuid"- }- },- {- "name": "skip",- "in": "query",- "description": "Number of records to skip.",- "required": false,- "schema": {- "type": "integer",- "default": 0,- "minimum": 0- }- },- {- "name": "take",- "in": "query",- "description": "Number of records to take.",- "required": false,- "schema": {- "type": "integer",- "default": 10,- "minimum": 1+ "type": "integer"}}],+ "requestBody": {+ "required": true,+ "content": {+ "application\/json": {+ "schema": {+ "properties": {+ "name": {+ "type": "string",+ "description": "GitHub App name"+ },+ "organization": {+ "type": "string",+ "nullable": true,+ "description": "GitHub organization"+ },+ "api_url": {+ "type": "string",+ "description": "GitHub API URL"+ },+ "html_url": {+ "type": "string",+ "description": "GitHub HTML URL"+ },+ "custom_user": {+ "type": "string",+ "description": "Custom user for SSH"+ },+ "custom_port": {+ "type": "integer",+ "description": "Custom port for SSH"+ },+ "app_id": {+ "type": "integer",+ "description": "GitHub App ID"+ },+ "installation_id": {+ "type": "integer",+ "description": "GitHub Installation ID"+ },+ "client_id": {+ "type": "string",+ "description": "GitHub Client ID"+ },+ "client_secret": {+ "type": "string",+ "description": "GitHub Client Secret"+ },+ "webhook_secret": {+ "type": "string",+ "description": "GitHub Webhook Secret"+ },+ "private_key_uuid": {+ "type": "string",+ "description": "Private key UUID"+ },+ "is_system_wide": {+ "type": "boolean",+ "description": "Is system wide (non-cloud instances only)"+ }+ },+ "type": "object"+ }+ }+ }+ },"responses": {"200": {- "description": "List application deployments by using the app uuid.",+ "description": "GitHub app updated successfully","content": {"application\/json": {"schema": {- "type": "array",- "items": {- "$ref": "#\/components\/schemas\/Application"- }+ "properties": {+ "message": {+ "type": "string",+ "example": "GitHub app updated successfully"+ },+ "data": {+ "type": "object",+ "description": "Updated GitHub app data"+ }+ },+ "type": "object"}}}},"401": {- "$ref": "#\/components\/responses\/401"+ "description": "Unauthorized"},- "400": {- "$ref": "#\/components\/responses\/400"+ "404": {+ "description": "GitHub app not found"+ },+ "422": {+ "description": "Validation error"}},"security": [@@ -8890,6 +9773,10 @@"name": "Deployments","description": "Deployments"},+ {+ "name": "GitHub Apps",+ "description": "GitHub Apps"+ },{"name": "Projects","description": "Projects"diff --git a/openapi.yaml b/openapi.yamlindex 9529fcf87e..3e39c5d362 100644--- a/openapi.yaml+++ b/openapi.yaml@@ -2097,6 +2097,39 @@ paths:security:-bearerAuth: []+ '/databases/{uuid}/backups':+ get:+ tags:+ - Databases+ summary: Get+ description: 'Get backups details by database UUID.'+ operationId: get-database-backups-by-uuid+ parameters:+ -+ name: uuid+ in: path+ description: 'UUID of the database.'+ required: true+ schema:+ type: string+ format: uuid+ responses:+ '200':+ description: 'Get all backups for a database'+ content:+ application/json:+ schema:+ type: string+ example: 'Content is very complex. Will be implemented later.'+ '401':+ $ref: '#/components/responses/401'+ '400':+ $ref: '#/components/responses/400'+ '404':+ $ref: '#/components/responses/404'+ security:+ -+ bearerAuth: []'/databases/{uuid}':get:tags:@@ -2347,6 +2380,139 @@ paths:security:-bearerAuth: []+ '/databases/{uuid}/backups/{scheduled_backup_uuid}':+ delete:+ tags:+ - Databases+ summary: 'Delete backup configuration'+ description: 'Deletes a backup configuration and all its executions.'+ operationId: delete-backup-configuration-by-uuid+ parameters:+ -+ name: uuid+ in: path+ description: 'UUID of the database'+ required: true+ schema:+ type: string+ -+ name: scheduled_backup_uuid+ in: path+ description: 'UUID of the backup configuration to delete'+ required: true+ schema:+ type: string+ format: uuid+ -+ name: delete_s3+ in: query+ description: 'Whether to delete all backup files from S3'+ required: false+ schema:+ type: boolean+ default: false+ responses:+ '200':+ description: 'Backup configuration deleted.'+ content:+ application/json:+ schema:+ properties:+ '': { type: string, example: 'Backup configuration and all executions deleted.' }+ type: object+ '404':+ description: 'Backup configuration not found.'+ content:+ application/json:+ schema:+ properties:+ '': { type: string, example: 'Backup configuration not found.' }+ type: object+ security:+ -+ bearerAuth: []+ patch:+ tags:+ - Databases+ summary: Update+ description: 'Update a specific backup configuration for a given database, identified by its UUID and the backup ID'+ operationId: update-database-backup+ parameters:+ -+ name: uuid+ in: path+ description: 'UUID of the database.'+ required: true+ schema:+ type: string+ format: uuid+ -+ name: scheduled_backup_uuid+ in: path+ description: 'UUID of the backup configuration.'+ required: true+ schema:+ type: string+ format: uuid+ requestBody:+ description: 'Database backup configuration data'+ required: true+ content:+ application/json:+ schema:+ properties:+ save_s3:+ type: boolean+ description: 'Whether data is saved in s3 or not'+ s3_storage_uuid:+ type: string+ description: 'S3 storage UUID'+ backup_now:+ type: boolean+ description: 'Whether to take a backup now or not'+ enabled:+ type: boolean+ description: 'Whether the backup is enabled or not'+ databases_to_backup:+ type: string+ description: 'Comma separated list of databases to backup'+ dump_all:+ type: boolean+ description: 'Whether all databases are dumped or not'+ frequency:+ type: string+ description: 'Frequency of the backup'+ database_backup_retention_amount_locally:+ type: integer+ description: 'Retention amount of the backup locally'+ database_backup_retention_days_locally:+ type: integer+ description: 'Retention days of the backup locally'+ database_backup_retention_max_storage_locally:+ type: integer+ description: 'Max storage of the backup locally'+ database_backup_retention_amount_s3:+ type: integer+ description: 'Retention amount of the backup in s3'+ database_backup_retention_days_s3:+ type: integer+ description: 'Retention days of the backup in s3'+ database_backup_retention_max_storage_s3:+ type: integer+ description: 'Max storage of the backup in S3'+ type: object+ responses:+ '200':+ description: 'Database backup configuration updated'+ '401':+ $ref: '#/components/responses/401'+ '400':+ $ref: '#/components/responses/400'+ '404':+ $ref: '#/components/responses/404'+ security:+ -+ bearerAuth: []/databases/postgresql:post:tags:@@ -3094,6 +3260,102 @@ paths:security:-bearerAuth: []+ '/databases/{uuid}/backups/{scheduled_backup_uuid}/executions/{execution_uuid}':+ delete:+ tags:+ - Databases+ summary: 'Delete backup execution'+ description: 'Deletes a specific backup execution.'+ operationId: delete-backup-execution-by-uuid+ parameters:+ -+ name: uuid+ in: path+ description: 'UUID of the database'+ required: true+ schema:+ type: string+ -+ name: scheduled_backup_uuid+ in: path+ description: 'UUID of the backup configuration'+ required: true+ schema:+ type: string+ format: uuid+ -+ name: execution_uuid+ in: path+ description: 'UUID of the backup execution to delete'+ required: true+ schema:+ type: string+ format: uuid+ -+ name: delete_s3+ in: query+ description: 'Whether to delete the backup from S3'+ required: false+ schema:+ type: boolean+ default: false+ responses:+ '200':+ description: 'Backup execution deleted.'+ content:+ application/json:+ schema:+ properties:+ '': { type: string, example: 'Backup execution deleted.' }+ type: object+ '404':+ description: 'Backup execution not found.'+ content:+ application/json:+ schema:+ properties:+ '': { type: string, example: 'Backup execution not found.' }+ type: object+ security:+ -+ bearerAuth: []+ '/databases/{uuid}/backups/{scheduled_backup_uuid}/executions':+ get:+ tags:+ - Databases+ summary: 'List backup executions'+ description: 'Get all executions for a specific backup configuration.'+ operationId: list-backup-executions+ parameters:+ -+ name: uuid+ in: path+ description: 'UUID of the database'+ required: true+ schema:+ type: string+ -+ name: scheduled_backup_uuid+ in: path+ description: 'UUID of the backup configuration'+ required: true+ schema:+ type: string+ format: uuid+ responses:+ '200':+ description: 'List of backup executions'+ content:+ application/json:+ schema:+ properties:+ '': { type: array, items: { properties: { uuid: { type: string }, filename: { type: string }, size: { type: integer }, created_at: { type: string }, message: { type: string }, status: { type: string } }, type: object } }+ type: object+ '404':+ description: 'Backup configuration not found.'+ security:+ -+ bearerAuth: []'/databases/{uuid}/start':get:tags:@@ -3348,6 +3610,300 @@ paths:security:-bearerAuth: []+ /github-apps:+ post:+ tags:+ - 'GitHub Apps'+ summary: 'Create GitHub App'+ description: 'Create a new GitHub app.'+ operationId: create-github-app+ requestBody:+ description: 'GitHub app creation payload.'+ required: true+ content:+ application/json:+ schema:+ required:+ - name+ - api_url+ - html_url+ - app_id+ - installation_id+ - client_id+ - client_secret+ - private_key_uuid+ properties:+ name:+ type: string+ description: 'Name of the GitHub app.'+ organization:+ type: string+ nullable: true+ description: 'Organization to associate the app with.'+ api_url:+ type: string+ description: 'API URL for the GitHub app (e.g., https://api.github.com).'+ html_url:+ type: string+ description: 'HTML URL for the GitHub app (e.g., https://github.com).'+ custom_user:+ type: string+ description: 'Custom user for SSH access (default: git).'+ custom_port:+ type: integer+ description: 'Custom port for SSH access (default: 22).'+ app_id:+ type: integer+ description: 'GitHub App ID from GitHub.'+ installation_id:+ type: integer+ description: 'GitHub Installation ID.'+ client_id:+ type: string+ description: 'GitHub OAuth App Client ID.'+ client_secret:+ type: string+ description: 'GitHub OAuth App Client Secret.'+ webhook_secret:+ type: string+ description: 'Webhook secret for GitHub webhooks.'+ private_key_uuid:+ type: string+ description: 'UUID of an existing private key for GitHub App authentication.'+ is_system_wide:+ type: boolean+ description: 'Is this app system-wide (cloud only).'+ type: object+ responses:+ '201':+ description: 'GitHub app created successfully.'+ content:+ application/json:+ schema:+ properties:+ id: { type: integer }+ uuid: { type: string }+ name: { type: string }+ organization: { type: string, nullable: true }+ api_url: { type: string }+ html_url: { type: string }+ custom_user: { type: string }+ custom_port: { type: integer }+ app_id: { type: integer }+ installation_id: { type: integer }+ client_id: { type: string }+ private_key_id: { type: integer }+ is_system_wide: { type: boolean }+ team_id: { type: integer }+ type: object+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '422':+ $ref: '#/components/responses/422'+ security:+ -+ bearerAuth: []+ '/github-apps/{github_app_id}/repositories':+ get:+ tags:+ - 'GitHub Apps'+ summary: 'Load Repositories for a GitHub App'+ description: 'Fetch repositories from GitHub for a given GitHub app.'+ operationId: load-repositories+ parameters:+ -+ name: github_app_id+ in: path+ description: 'GitHub App ID'+ required: true+ schema:+ type: integer+ responses:+ '200':+ description: 'Repositories loaded successfully.'+ content:+ application/json:+ schema:+ properties:+ '': { type: array, items: { type: object } }+ type: object+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ security:+ -+ bearerAuth: []+ '/github-apps/{github_app_id}/repositories/{owner}/{repo}/branches':+ get:+ tags:+ - 'GitHub Apps'+ summary: 'Load Branches for a GitHub Repository'+ description: 'Fetch branches from GitHub for a given repository.'+ operationId: load-branches+ parameters:+ -+ name: github_app_id+ in: path+ description: 'GitHub App ID'+ required: true+ schema:+ type: integer+ -+ name: owner+ in: path+ description: 'Repository owner'+ required: true+ schema:+ type: string+ -+ name: repo+ in: path+ description: 'Repository name'+ required: true+ schema:+ type: string+ responses:+ '200':+ description: 'Branches loaded successfully.'+ content:+ application/json:+ schema:+ properties:+ '': { type: array, items: { type: object } }+ type: object+ '400':+ $ref: '#/components/responses/400'+ '401':+ $ref: '#/components/responses/401'+ '404':+ $ref: '#/components/responses/404'+ security:+ -+ bearerAuth: []+ '/github-apps/{github_app_id}':+ delete:+ tags:+ - 'GitHub Apps'+ summary: 'Delete GitHub App'+ description: "Delete a GitHub app if it's not being used by any applications."+ operationId: deleteGithubApp+ parameters:+ -+ name: github_app_id+ in: path+ description: 'GitHub App ID'+ required: true+ schema:+ type: integer+ responses:+ '200':+ description: 'GitHub app deleted successfully'+ content:+ application/json:+ schema:+ properties:+ message: { type: string, example: 'GitHub app deleted successfully' }+ type: object+ '401':+ description: Unauthorized+ '404':+ description: 'GitHub app not found'+ '409':+ description: 'Conflict - GitHub app is in use'+ content:+ application/json:+ schema:+ properties:+ message: { type: string, example: 'This GitHub app is being used by 5 application(s). Please delete all applications first.' }+ type: object+ security:+ -+ bearerAuth: []+ patch:+ tags:+ - 'GitHub Apps'+ summary: 'Update GitHub App'+ description: 'Update an existing GitHub app.'+ operationId: updateGithubApp+ parameters:+ -+ name: github_app_id+ in: path+ description: 'GitHub App ID'+ required: true+ schema:+ type: integer+ requestBody:+ required: true+ content:+ application/json:+ schema:+ properties:+ name:+ type: string+ description: 'GitHub App name'+ organization:+ type: string+ nullable: true+ description: 'GitHub organization'+ api_url:+ type: string+ description: 'GitHub API URL'+ html_url:+ type: string+ description: 'GitHub HTML URL'+ custom_user:+ type: string+ description: 'Custom user for SSH'+ custom_port:+ type: integer+ description: 'Custom port for SSH'+ app_id:+ type: integer+ description: 'GitHub App ID'+ installation_id:+ type: integer+ description: 'GitHub Installation ID'+ client_id:+ type: string+ description: 'GitHub Client ID'+ client_secret:+ type: string+ description: 'GitHub Client Secret'+ webhook_secret:+ type: string+ description: 'GitHub Webhook Secret'+ private_key_uuid:+ type: string+ description: 'Private key UUID'+ is_system_wide:+ type: boolean+ description: 'Is system wide (non-cloud instances only)'+ type: object+ responses:+ '200':+ description: 'GitHub app updated successfully'+ content:+ application/json:+ schema:+ properties:+ message: { type: string, example: 'GitHub app updated successfully' }+ data: { type: object, description: 'Updated GitHub app data' }+ type: object+ '401':+ description: Unauthorized+ '404':+ description: 'GitHub app not found'+ '422':+ description: 'Validation error'+ security:+ -+ bearerAuth: []/version:get:summary: Version@@ -5781,6 +6337,9 @@ tags:-name: Deploymentsdescription: Deployments+ -+ name: 'GitHub Apps'+ description: 'GitHub Apps'-name: Projectsdescription: Projects