feat: Expose project description in API response

This commit is contained in:
Andras Bacsai
2024-09-10 08:49:25 +02:00
parent 27ad4441ee
commit 2c929b300a

View File

@@ -2831,7 +2831,7 @@ paths:
- -
name: uuid name: uuid
in: path in: path
description: 'Deployment Uuid' description: 'Deployment UUID'
required: true required: true
schema: schema:
type: string type: string
@@ -2879,7 +2879,7 @@ paths:
type: boolean type: boolean
responses: responses:
'200': '200':
description: "Get deployment(s) Uuid's" description: "Get deployment(s) UUID's"
content: content:
application/json: application/json:
schema: schema:
@@ -2993,7 +2993,7 @@ paths:
tags: tags:
- Projects - Projects
summary: List summary: List
description: 'list projects.' description: 'List projects.'
operationId: list-projects operationId: list-projects
responses: responses:
'200': '200':
@@ -3054,7 +3054,7 @@ paths:
tags: tags:
- Projects - Projects
summary: Get summary: Get
description: 'Get project by Uuid.' description: 'Get project by UUID.'
operationId: get-project-by-uuid operationId: get-project-by-uuid
parameters: parameters:
- -
@@ -3323,7 +3323,7 @@ paths:
- -
name: uuid name: uuid
in: path in: path
description: 'Private Key Uuid' description: 'Private Key UUID'
required: true required: true
schema: schema:
type: string type: string
@@ -3355,7 +3355,7 @@ paths:
- -
name: uuid name: uuid
in: path in: path
description: 'Private Key Uuid' description: 'Private Key UUID'
required: true required: true
schema: schema:
type: string type: string
@@ -3475,7 +3475,7 @@ paths:
- -
name: uuid name: uuid
in: path in: path
description: "Server's Uuid" description: "Server's UUID"
required: true required: true
schema: schema:
type: string type: string
@@ -3595,7 +3595,7 @@ paths:
- -
name: uuid name: uuid
in: path in: path
description: "Server's Uuid" description: "Server's UUID"
required: true required: true
schema: schema:
type: string type: string
@@ -3627,7 +3627,7 @@ paths:
- -
name: uuid name: uuid
in: path in: path
description: "Server's Uuid" description: "Server's UUID"
required: true required: true
schema: schema:
type: string type: string
@@ -3784,7 +3784,7 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: 'Get a service by Uuid.' description: 'Get a service by UUID.'
content: content:
application/json: application/json:
schema: schema:
@@ -3814,7 +3814,7 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: 'Delete a service by Uuid' description: 'Delete a service by UUID'
content: content:
application/json: application/json:
schema: schema:
@@ -3830,108 +3830,6 @@ paths:
security: security:
- -
bearerAuth: [] bearerAuth: []
'/services/{uuid}/start':
get:
tags:
- Services
summary: Start
description: 'Start service. `Post` request is also accepted.'
operationId: start-service-by-uuid
parameters:
-
name: uuid
in: path
description: 'UUID of the service.'
required: true
schema:
type: string
format: uuid
responses:
'200':
description: 'Start service.'
content:
application/json:
schema:
properties:
message: { type: string, example: 'Service starting request queued.' }
type: object
'401':
$ref: '#/components/responses/401'
'400':
$ref: '#/components/responses/400'
'404':
$ref: '#/components/responses/404'
security:
-
bearerAuth: []
'/services/{uuid}/stop':
get:
tags:
- Services
summary: Stop
description: 'Stop service. `Post` request is also accepted.'
operationId: stop-service-by-uuid
parameters:
-
name: uuid
in: path
description: 'UUID of the service.'
required: true
schema:
type: string
format: uuid
responses:
'200':
description: 'Stop service.'
content:
application/json:
schema:
properties:
message: { type: string, example: 'Service stopping request queued.' }
type: object
'401':
$ref: '#/components/responses/401'
'400':
$ref: '#/components/responses/400'
'404':
$ref: '#/components/responses/404'
security:
-
bearerAuth: []
'/services/{uuid}/restart':
get:
tags:
- Services
summary: Restart
description: 'Restart service. `Post` request is also accepted.'
operationId: restart-service-by-uuid
parameters:
-
name: uuid
in: path
description: 'UUID of the service.'
required: true
schema:
type: string
format: uuid
responses:
'200':
description: 'Restart service.'
content:
application/json:
schema:
properties:
message: { type: string, example: 'Service restaring request queued.' }
type: object
'401':
$ref: '#/components/responses/401'
'400':
$ref: '#/components/responses/400'
'404':
$ref: '#/components/responses/404'
security:
-
bearerAuth: []
'/services/{uuid}/envs': '/services/{uuid}/envs':
get: get:
tags: tags:
@@ -4182,6 +4080,108 @@ paths:
security: security:
- -
bearerAuth: [] bearerAuth: []
'/services/{uuid}/start':
get:
tags:
- Services
summary: Start
description: 'Start service. `Post` request is also accepted.'
operationId: start-service-by-uuid
parameters:
-
name: uuid
in: path
description: 'UUID of the service.'
required: true
schema:
type: string
format: uuid
responses:
'200':
description: 'Start service.'
content:
application/json:
schema:
properties:
message: { type: string, example: 'Service starting request queued.' }
type: object
'401':
$ref: '#/components/responses/401'
'400':
$ref: '#/components/responses/400'
'404':
$ref: '#/components/responses/404'
security:
-
bearerAuth: []
'/services/{uuid}/stop':
get:
tags:
- Services
summary: Stop
description: 'Stop service. `Post` request is also accepted.'
operationId: stop-service-by-uuid
parameters:
-
name: uuid
in: path
description: 'UUID of the service.'
required: true
schema:
type: string
format: uuid
responses:
'200':
description: 'Stop service.'
content:
application/json:
schema:
properties:
message: { type: string, example: 'Service stopping request queued.' }
type: object
'401':
$ref: '#/components/responses/401'
'400':
$ref: '#/components/responses/400'
'404':
$ref: '#/components/responses/404'
security:
-
bearerAuth: []
'/services/{uuid}/restart':
get:
tags:
- Services
summary: Restart
description: 'Restart service. `Post` request is also accepted.'
operationId: restart-service-by-uuid
parameters:
-
name: uuid
in: path
description: 'UUID of the service.'
required: true
schema:
type: string
format: uuid
responses:
'200':
description: 'Restart service.'
content:
application/json:
schema:
properties:
message: { type: string, example: 'Service restaring request queued.' }
type: object
'401':
$ref: '#/components/responses/401'
'400':
$ref: '#/components/responses/400'
'404':
$ref: '#/components/responses/404'
security:
-
bearerAuth: []
/teams: /teams:
get: get:
tags: tags:
@@ -4730,6 +4730,8 @@ components:
type: string type: string
name: name:
type: string type: string
description:
type: string
environments: environments:
description: 'The environments of the project.' description: 'The environments of the project.'
type: array type: array