Skip to content

Commit fe50c33

Browse files
remove project put
1 parent 1b8be0f commit fe50c33

File tree

3 files changed

+1
-112
lines changed

3 files changed

+1
-112
lines changed

api/specs/web-server/_projects_crud.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
ProjectGet,
2323
ProjectListItem,
2424
ProjectPatch,
25-
ProjectReplace,
2625
)
2726
from models_library.generics import Envelope
2827
from models_library.projects import ProjectID
@@ -104,15 +103,6 @@ async def get_project(project_id: ProjectID):
104103
...
105104

106105

107-
@router.put(
108-
"/projects/{project_id}",
109-
response_model=None,
110-
status_code=status.HTTP_410_GONE, # Deprecated endpoint
111-
)
112-
async def replace_project(project_id: ProjectID, _replace: ProjectReplace):
113-
"""Replaces (i.e. full update) a project resource"""
114-
115-
116106
@router.patch(
117107
"/projects/{project_id}",
118108
response_model=None,

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

Lines changed: 1 addition & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,32 +3221,6 @@ paths:
32213221
application/json:
32223222
schema:
32233223
$ref: '#/components/schemas/Envelope_ProjectGet_'
3224-
put:
3225-
tags:
3226-
- projects
3227-
summary: Replace Project
3228-
description: Replaces (i.e. full update) a project resource
3229-
operationId: replace_project
3230-
parameters:
3231-
- required: true
3232-
schema:
3233-
title: Project Id
3234-
type: string
3235-
format: uuid
3236-
name: project_id
3237-
in: path
3238-
requestBody:
3239-
content:
3240-
application/json:
3241-
schema:
3242-
$ref: '#/components/schemas/ProjectReplace'
3243-
required: true
3244-
responses:
3245-
'410':
3246-
description: Successful Response
3247-
content:
3248-
application/json:
3249-
schema: {}
32503224
delete:
32513225
tags:
32523226
- projects
@@ -4330,7 +4304,7 @@ paths:
43304304
'403':
43314305
description: ProjectInvalidRightsError
43324306
'404':
4333-
description: ProjectNotFoundError, UserDefaultWalletNotFoundError
4307+
description: UserDefaultWalletNotFoundError, ProjectNotFoundError
43344308
'409':
43354309
description: ProjectTooManyProjectOpenedError
43364310
'422':
@@ -10740,68 +10714,6 @@ components:
1074010714
is_public:
1074110715
title: Is Public
1074210716
type: boolean
10743-
ProjectReplace:
10744-
title: ProjectReplace
10745-
required:
10746-
- uuid
10747-
- name
10748-
- description
10749-
- creationDate
10750-
- lastChangeDate
10751-
- workbench
10752-
- accessRights
10753-
type: object
10754-
properties:
10755-
uuid:
10756-
title: Uuid
10757-
type: string
10758-
format: uuid
10759-
name:
10760-
title: Name
10761-
type: string
10762-
description:
10763-
title: Description
10764-
type: string
10765-
thumbnail:
10766-
title: Thumbnail
10767-
maxLength: 2083
10768-
minLength: 0
10769-
type: string
10770-
format: uri
10771-
creationDate:
10772-
title: Creationdate
10773-
pattern: \d{4}-(12|11|10|0?[1-9])-(31|30|[0-2]?\d)T(2[0-3]|1\d|0?[0-9])(:(\d|[0-5]\d)){2}(\.\d{3})?Z
10774-
type: string
10775-
lastChangeDate:
10776-
title: Lastchangedate
10777-
pattern: \d{4}-(12|11|10|0?[1-9])-(31|30|[0-2]?\d)T(2[0-3]|1\d|0?[0-9])(:(\d|[0-5]\d)){2}(\.\d{3})?Z
10778-
type: string
10779-
workbench:
10780-
title: Workbench
10781-
type: object
10782-
additionalProperties:
10783-
$ref: '#/components/schemas/Node'
10784-
accessRights:
10785-
title: Accessrights
10786-
type: object
10787-
additionalProperties:
10788-
$ref: '#/components/schemas/models_library__projects_access__AccessRights'
10789-
tags:
10790-
title: Tags
10791-
type: array
10792-
items:
10793-
type: integer
10794-
default: []
10795-
classifiers:
10796-
title: Classifiers
10797-
type: array
10798-
items:
10799-
type: string
10800-
ui:
10801-
$ref: '#/components/schemas/StudyUI'
10802-
quality:
10803-
title: Quality
10804-
type: object
1080510717
ProjectRunningState:
1080610718
title: ProjectRunningState
1080710719
required:

services/web/server/src/simcore_service_webserver/projects/_crud_handlers.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -388,19 +388,6 @@ async def get_project_inactivity(request: web.Request):
388388
#
389389

390390

391-
@routes.put(f"/{VTAG}/projects/{{project_id}}", name="replace_project")
392-
@login_required
393-
@permission_required("project.update")
394-
@permission_required("services.pipeline.*") # due to update_pipeline_db
395-
async def replace_project(request: web.Request):
396-
"""
397-
Deprecated -> PATCH project OR dedicated /nodes (workbench) endpoints should be used instead
398-
"""
399-
400-
assert request # nosec
401-
return web.json_response(data="Deprecated endpoint", status=status.HTTP_410_GONE)
402-
403-
404391
@routes.patch(f"/{VTAG}/projects/{{project_id}}", name="patch_project")
405392
@login_required
406393
@permission_required("project.update")

0 commit comments

Comments
 (0)