File tree Expand file tree Collapse file tree 3 files changed +31
-3
lines changed
services/web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change 1616 status_code = status .HTTP_204_NO_CONTENT ,
1717)
1818def service_submission (
19- _file : Annotated [bytes , File (description = "metadata.json submission file" )]
19+ file : Annotated [bytes , File (description = "metadata.json submission file" )]
2020):
2121 """
2222 Submits files with new service candidate
2323 """
24+ assert file # nosec
Original file line number Diff line number Diff line change 5151 "_projects_tags" ,
5252 "_projects_wallet" ,
5353 "_projects_workspaces" ,
54- # "_publications", # <--- FIXME: RuntimeWarning: fields may not start with an underscore, ignoring "_file"
54+ "_publications" , # <--- FIXME: RuntimeWarning: fields may not start with an underscore, ignoring "_file"
5555 "_resource_usage" ,
5656 "_statics" ,
5757 "_storage" ,
Original file line number Diff line number Diff line change @@ -4233,7 +4233,7 @@ paths:
42334233 ' 403 ' :
42344234 description : ProjectInvalidRightsError
42354235 ' 404 ' :
4236- description : UserDefaultWalletNotFoundError, ProjectNotFoundError
4236+ description : ProjectNotFoundError, UserDefaultWalletNotFoundError
42374237 ' 409 ' :
42384238 description : ProjectTooManyProjectOpenedError
42394239 ' 422 ' :
@@ -4427,6 +4427,22 @@ paths:
44274427 responses :
44284428 ' 204 ' :
44294429 description : Successful Response
4430+ /v0/publications/service-submission :
4431+ post :
4432+ tags :
4433+ - publication
4434+ summary : Service Submission
4435+ description : Submits files with new service candidate
4436+ operationId : service_submission
4437+ requestBody :
4438+ content :
4439+ multipart/form-data :
4440+ schema :
4441+ $ref : ' #/components/schemas/Body_service_submission'
4442+ required : true
4443+ responses :
4444+ ' 204 ' :
4445+ description : Successful Response
44304446 /v0/services/-/resource-usages :
44314447 get :
44324448 tags :
@@ -6172,6 +6188,17 @@ components:
61726188 - name
61736189 - email
61746190 title : Author
6191+ Body_service_submission :
6192+ properties :
6193+ file :
6194+ type : string
6195+ format : binary
6196+ title : File
6197+ description : metadata.json submission file
6198+ type : object
6199+ required :
6200+ - file
6201+ title : Body_service_submission
61756202 BootChoice :
61766203 properties :
61776204 label :
You can’t perform that action at this time.
0 commit comments