Skip to content

Commit 67e51fe

Browse files
committed
cleanup
1 parent e2e75e5 commit 67e51fe

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

api/specs/web-server/_trash.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ def empty_trash():
3535
"/projects/{project_id}:trash",
3636
tags=_extra_tags,
3737
status_code=status.HTTP_204_NO_CONTENT,
38+
responses={
39+
status.HTTP_404_NOT_FOUND: {"description": "Not such a project"},
40+
status.HTTP_409_CONFLICT: {
41+
"description": "Project is in use and cannot be trashed"
42+
},
43+
status.HTTP_503_SERVICE_UNAVAILABLE: {"description": "Trash service error"},
44+
},
3845
)
3946
def trash_project(
4047
_p: Annotated[ProjectPathParams, Depends()],

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5396,6 +5396,12 @@ paths:
53965396
responses:
53975397
'204':
53985398
description: Successful Response
5399+
'404':
5400+
description: Not such a project
5401+
'409':
5402+
description: Project is in use and cannot be trashed
5403+
'503':
5404+
description: Trash service error
53995405
/v0/projects/{project_id}:untrash:
54005406
post:
54015407
tags:
@@ -10670,15 +10676,15 @@ components:
1067010676
title: Value
1067110677
type: boolean
1067210678
description: True if the project is locked
10679+
status:
10680+
allOf:
10681+
- $ref: '#/components/schemas/ProjectStatus'
10682+
description: The status of the project
1067310683
owner:
1067410684
title: Owner
1067510685
allOf:
1067610686
- $ref: '#/components/schemas/Owner'
1067710687
description: If locked, the user that owns the lock
10678-
status:
10679-
allOf:
10680-
- $ref: '#/components/schemas/ProjectStatus'
10681-
description: The status of the project
1068210688
additionalProperties: false
1068310689
ProjectMetadataGet:
1068410690
title: ProjectMetadataGet

0 commit comments

Comments
 (0)