Skip to content

Commit ee89ede

Browse files
fix: update openapi-spec
1 parent 27814d5 commit ee89ede

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

api/specs/web-server/_functions.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from models_library.api_schemas_webserver.functions import (
1212
FunctionToRegister,
1313
RegisteredFunctionGet,
14+
RegisteredFunctionUpdate,
1415
)
1516
from models_library.generics import Envelope
1617
from 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,

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)