File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
services/web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- """ Helper script to generate OAS automatically NIH-sparc portal API section
2- """
1+ """Helper script to generate OAS automatically NIH-sparc portal API section"""
32
43# pylint: disable=protected-access
54# pylint: disable=redefined-outer-name
1110from fastapi import APIRouter , status
1211from fastapi .responses import RedirectResponse
1312from models_library .projects import ProjectID
14- from models_library .services import ServiceKey , ServiceKeyVersion
13+ from models_library .services_types import ServiceKey , ServiceVersion
1514from pydantic import HttpUrl , PositiveInt
1615
1716router = APIRouter (
3130async def get_redirection_to_viewer (
3231 file_type : str ,
3332 viewer_key : ServiceKey ,
34- viewer_version : ServiceKeyVersion ,
33+ viewer_version : ServiceVersion ,
3534 file_size : PositiveInt ,
3635 download_link : HttpUrl ,
3736 file_name : str | None = "unknown" ,
Original file line number Diff line number Diff line change @@ -4528,6 +4528,13 @@ paths:
45284528 type : string
45294529 pattern : ^simcore/services/((comp|dynamic|frontend))/([a-z0-9][a-z0-9_.-]*/)*([a-z0-9-_]+[a-z0-9])$
45304530 title : Viewer Key
4531+ - name : viewer_version
4532+ in : query
4533+ required : true
4534+ schema :
4535+ type : string
4536+ pattern : ^(0|[1-9]\d*)(\.(0|[1-9]\d*)){2}(-(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*)(\.(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*))*)?(\+[-\da-zA-Z]+(\.[-\da-zA-Z-]+)*)?$
4537+ title : Viewer Version
45314538 - name : file_size
45324539 in : query
45334540 required : true
@@ -4554,12 +4561,6 @@ paths:
45544561 - type : ' null'
45554562 default : unknown
45564563 title : File Name
4557- requestBody :
4558- required : true
4559- content :
4560- application/json :
4561- schema :
4562- $ref : ' #/components/schemas/ServiceKeyVersion'
45634564 responses :
45644565 ' 302 ' :
45654566 description : Opens osparc and starts viewer for selected data
You can’t perform that action at this time.
0 commit comments