File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
services/web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff 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)
3946def trash_project (
4047 _p : Annotated [ProjectPathParams , Depends ()],
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments