-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow multiple services to be stopped or deleted
- Loading branch information
Showing
5 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
post: | ||
summary: 'Delete services' | ||
description: Delete selected services | ||
operationId: deleteSelectedServices | ||
parameters: | ||
- $ref: '../parameters/path/environmentId.yaml' | ||
tags: | ||
- Environment Actions | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/EnvironmentServiceIdsAllRequest.yaml' | ||
responses: | ||
'200': | ||
description: 'Services have been triggered to be deleted' | ||
'400': | ||
$ref: '../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../responses/NotFound.yaml' | ||
'409': | ||
description: 'Operation is in progress' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
post: | ||
summary: 'Stop services' | ||
description: Stop selected services | ||
operationId: stopSelectedServices | ||
parameters: | ||
- $ref: '../parameters/path/environmentId.yaml' | ||
tags: | ||
- Environment Actions | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/EnvironmentServiceIdsAllRequest.yaml' | ||
responses: | ||
'200': | ||
description: 'Services have been triggered to be deleted' | ||
'400': | ||
$ref: '../responses/BadRequest.yaml' | ||
'401': | ||
$ref: '../responses/NotAuthorized.yaml' | ||
'403': | ||
$ref: '../responses/Forbidden.yaml' | ||
'404': | ||
$ref: '../responses/NotFound.yaml' | ||
'409': | ||
description: 'Operation is in progress' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
type: object | ||
properties: | ||
application_ids: | ||
type: array | ||
items: | ||
type: string | ||
format: uuid | ||
container_ids: | ||
type: array | ||
items: | ||
type: string | ||
format: uuid | ||
database_ids: | ||
type: array | ||
items: | ||
type: string | ||
format: uuid | ||
job_ids: | ||
type: array | ||
items: | ||
type: string | ||
format: uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters