File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
services/web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1111from models_library .api_schemas_webserver .functions import (
1212 FunctionToRegister ,
1313 RegisteredFunctionGet ,
14+ RegisteredFunctionUpdate ,
1415)
1516from models_library .generics import Envelope
1617from simcore_service_webserver ._meta import API_VTAG
@@ -44,6 +45,16 @@ async def get_function(
4445): ...
4546
4647
48+ @router .patch (
49+ "/functions/{function_id}" ,
50+ response_model = Envelope [RegisteredFunctionGet ],
51+ )
52+ async def update_function (
53+ _body : RegisteredFunctionUpdate ,
54+ _path : Annotated [FunctionPathParams , Depends ()],
55+ ): ...
56+
57+
4758@router .delete (
4859 "/functions/{function_id}" ,
4960 status_code = status .HTTP_204_NO_CONTENT ,
Original file line number Diff line number Diff line change @@ -3395,6 +3395,32 @@ paths:
33953395 application/json :
33963396 schema :
33973397 $ref : ' #/components/schemas/Envelope_Annotated_Union_RegisteredProjectFunctionGet__RegisteredSolverFunctionGet___FieldInfo_annotation_NoneType__required_True__discriminator__function_class____'
3398+ patch :
3399+ tags :
3400+ - functions
3401+ summary : Update Function
3402+ operationId : update_function
3403+ parameters :
3404+ - name : function_id
3405+ in : path
3406+ required : true
3407+ schema :
3408+ type : string
3409+ format : uuid
3410+ title : Function Id
3411+ requestBody :
3412+ required : true
3413+ content :
3414+ application/json :
3415+ schema :
3416+ $ref : ' #/components/schemas/RegisteredFunctionUpdate'
3417+ responses :
3418+ ' 200 ' :
3419+ description : Successful Response
3420+ content :
3421+ application/json :
3422+ schema :
3423+ $ref : ' #/components/schemas/Envelope_Annotated_Union_RegisteredProjectFunctionGet__RegisteredSolverFunctionGet___FieldInfo_annotation_NoneType__required_True__discriminator__function_class____'
33983424 delete :
33993425 tags :
34003426 - functions
@@ -15978,6 +16004,20 @@ components:
1597816004 - name
1597916005 - message
1598016006 title : RegisterPhoneNextPage
16007+ RegisteredFunctionUpdate :
16008+ properties :
16009+ title :
16010+ anyOf :
16011+ - type : string
16012+ - type : ' null'
16013+ title : Title
16014+ description :
16015+ anyOf :
16016+ - type : string
16017+ - type : ' null'
16018+ title : Description
16019+ type : object
16020+ title : RegisteredFunctionUpdate
1598116021 RegisteredProjectFunctionGet :
1598216022 properties :
1598316023 functionClass :
You can’t perform that action at this time.
0 commit comments