Refactor deployment API response structure

This commit is contained in:
Andras Bacsai 2024-07-10 11:15:43 +02:00
parent 995324d6b3
commit 4ce36631e0
2 changed files with 0 additions and 6 deletions

View File

@ -2257,7 +2257,6 @@ public function delete_env_by_uuid(Request $request)
properties: [
'message' => ['type' => 'string', 'example' => 'Deployment request queued.', 'description' => 'Message.'],
'deployment_uuid' => ['type' => 'string', 'example' => 'doogksw', 'description' => 'UUID of the deployment.'],
'deployment_api_url' => ['type' => 'string', 'description' => 'URL to check deployment status.'],
])
),
]),
@ -2306,7 +2305,6 @@ public function action_deploy(Request $request)
[
'message' => 'Deployment request queued.',
'deployment_uuid' => $deployment_uuid->toString(),
'deployment_api_url' => base_url().'/api/v1/deployment/'.$deployment_uuid->toString(),
],
200
);
@ -2416,7 +2414,6 @@ public function action_stop(Request $request)
properties: [
'message' => ['type' => 'string', 'example' => 'Restart request queued.'],
'deployment_uuid' => ['type' => 'string', 'example' => 'doogksw', 'description' => 'UUID of the deployment.'],
'deployment_api_url' => ['type' => 'string', 'description' => 'URL to check deployment status.'],
]
)
),
@ -2464,7 +2461,6 @@ public function action_restart(Request $request)
[
'message' => 'Restart request queued.',
'deployment_uuid' => $deployment_uuid->toString(),
'deployment_api_url' => base_url().'/api/v1/deployment/'.$deployment_uuid->toString(),
],
);

View File

@ -1650,7 +1650,6 @@ paths:
properties:
message: { type: string, example: 'Deployment request queued.', description: Message. }
deployment_uuid: { type: string, example: doogksw, description: 'UUID of the deployment.' }
deployment_api_url: { type: string, description: 'URL to check deployment status.' }
type: object
'401':
$ref: '#/components/responses/401'
@ -1720,7 +1719,6 @@ paths:
properties:
message: { type: string, example: 'Restart request queued.' }
deployment_uuid: { type: string, example: doogksw, description: 'UUID of the deployment.' }
deployment_api_url: { type: string, description: 'URL to check deployment status.' }
type: object
'401':
$ref: '#/components/responses/401'