mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 12:33:03 +00:00
feat: create/delete project endpoints
This commit is contained in:
76
openapi.yaml
76
openapi.yaml
@@ -3010,6 +3010,46 @@ paths:
|
||||
security:
|
||||
-
|
||||
bearerAuth: []
|
||||
post:
|
||||
tags:
|
||||
- Projects
|
||||
summary: 'Create Project'
|
||||
description: 'Create Project.'
|
||||
operationId: cf067eb7cf18216cda3239329a2eeadb
|
||||
requestBody:
|
||||
description: 'Project created.'
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: 'The name of the project.'
|
||||
description:
|
||||
type: string
|
||||
description: 'The description of the project.'
|
||||
type: object
|
||||
responses:
|
||||
'201':
|
||||
description: 'Project created.'
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
uuid: { type: string, example: og888os }
|
||||
name: { type: string, example: 'Project Name' }
|
||||
description: { type: string, example: 'Project Description' }
|
||||
type: object
|
||||
'401':
|
||||
$ref: '#/components/responses/401'
|
||||
'400':
|
||||
$ref: '#/components/responses/400'
|
||||
'404':
|
||||
$ref: '#/components/responses/404'
|
||||
security:
|
||||
-
|
||||
bearerAuth: []
|
||||
'/projects/{uuid}':
|
||||
get:
|
||||
tags:
|
||||
@@ -3041,6 +3081,39 @@ paths:
|
||||
security:
|
||||
-
|
||||
bearerAuth: []
|
||||
delete:
|
||||
tags:
|
||||
- Projects
|
||||
summary: Delete
|
||||
description: 'Delete project by UUID.'
|
||||
operationId: f668a936f505b4401948c74b6a663029
|
||||
parameters:
|
||||
-
|
||||
name: uuid
|
||||
in: path
|
||||
description: 'UUID of the application.'
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
format: uuid
|
||||
responses:
|
||||
'200':
|
||||
description: 'Project deleted.'
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
properties:
|
||||
message: { type: string, example: 'Project deleted.' }
|
||||
type: object
|
||||
'401':
|
||||
$ref: '#/components/responses/401'
|
||||
'400':
|
||||
$ref: '#/components/responses/400'
|
||||
'404':
|
||||
$ref: '#/components/responses/404'
|
||||
security:
|
||||
-
|
||||
bearerAuth: []
|
||||
'/projects/{uuid}/{environment_name}':
|
||||
get:
|
||||
tags:
|
||||
@@ -4480,6 +4553,9 @@ components:
|
||||
is_container_label_escape_enabled:
|
||||
type: boolean
|
||||
description: 'The flag to enable the container label escape.'
|
||||
is_container_label_readonly_enabled:
|
||||
type: boolean
|
||||
description: 'The flag to enable the container label readonly.'
|
||||
config_hash:
|
||||
type: string
|
||||
description: 'The hash of the service configuration.'
|
||||
|
||||
Reference in New Issue
Block a user