Skip to content

Commit a6ac82d

Browse files
committed
Add new openapi json for functions
1 parent 6db18ee commit a6ac82d

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

services/api-server/openapi.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7006,6 +7006,73 @@
70067006
}
70077007
}
70087008
},
7009+
"/v0/functions/{function_id}/jobs": {
7010+
"get": {
7011+
"tags": [
7012+
"functions"
7013+
],
7014+
"summary": "List Function Jobs For Functionid",
7015+
"description": "List function jobs for a function",
7016+
"operationId": "list_function_jobs_for_functionid",
7017+
"parameters": [
7018+
{
7019+
"name": "function_id",
7020+
"in": "path",
7021+
"required": true,
7022+
"schema": {
7023+
"type": "string",
7024+
"format": "uuid",
7025+
"title": "Function Id"
7026+
}
7027+
},
7028+
{
7029+
"name": "limit",
7030+
"in": "query",
7031+
"required": false,
7032+
"schema": {
7033+
"type": "integer",
7034+
"maximum": 50,
7035+
"minimum": 1,
7036+
"default": 20,
7037+
"title": "Limit"
7038+
}
7039+
},
7040+
{
7041+
"name": "offset",
7042+
"in": "query",
7043+
"required": false,
7044+
"schema": {
7045+
"type": "integer",
7046+
"minimum": 0,
7047+
"default": 0,
7048+
"title": "Offset"
7049+
}
7050+
}
7051+
],
7052+
"responses": {
7053+
"200": {
7054+
"description": "Successful Response",
7055+
"content": {
7056+
"application/json": {
7057+
"schema": {
7058+
"$ref": "#/components/schemas/Page_Annotated_Union_RegisteredProjectFunctionJob__RegisteredPythonCodeFunctionJob__RegisteredSolverFunctionJob___FieldInfo_annotation_NoneType__required_True__discriminator__function_class____"
7059+
}
7060+
}
7061+
}
7062+
},
7063+
"422": {
7064+
"description": "Validation Error",
7065+
"content": {
7066+
"application/json": {
7067+
"schema": {
7068+
"$ref": "#/components/schemas/HTTPValidationError"
7069+
}
7070+
}
7071+
}
7072+
}
7073+
}
7074+
}
7075+
},
70097076
"/v0/functions/{function_id}/title": {
70107077
"patch": {
70117078
"tags": [

services/api-server/src/simcore_service_api_server/api/routes/functions_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async def list_functions(
104104
response_model=Page[RegisteredFunctionJob],
105105
description="List function jobs for a function",
106106
)
107-
async def list_function_jobs(
107+
async def list_function_jobs_for_functionid(
108108
function_id: FunctionID,
109109
wb_api_rpc: Annotated[WbApiRpcClient, Depends(get_wb_api_rpc_client)],
110110
page_params: Annotated[PaginationParams, Depends()],

0 commit comments

Comments
 (0)