File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed 
storage/src/simcore_service_storage/modules/datcore_adapter 
web/server/src/simcore_service_webserver/api/v0 Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 88
99from  fastapi  import  APIRouter , Query , status 
1010from  models_library .api_schemas_storage  import  (
11+     FileLocation ,
1112    FileMetaDataGet ,
1213    FileUploadCompleteFutureResponse ,
1314    FileUploadCompleteResponse ,
3738
3839@router .get ( 
3940    "/storage/locations" , 
40-     response_model = list [DatasetMetaData ], 
41+     response_model = list [FileLocation ], 
4142    description = "Get available storage locations" , 
4243) 
4344async  def  list_storage_locations ():
Original file line number Diff line number Diff line change 1010from  pydantic  import  AnyUrl , TypeAdapter 
1111from  servicelib .fastapi .client_session  import  get_client_session 
1212from  servicelib .utils  import  logged_gather 
13- from  simcore_service_storage .core .settings  import  get_application_settings 
1413
1514from  ...constants  import  DATCORE_ID , DATCORE_STR , MAX_CONCURRENT_REST_CALLS 
15+ from  ...core .settings  import  get_application_settings 
1616from  ...models  import  DatasetMetaData , FileMetaData 
1717from  .datcore_adapter_exceptions  import  (
1818    DatcoreAdapterClientError ,
@@ -64,7 +64,7 @@ async def _request(
6464            ** request_kwargs ,
6565        )
6666        response .raise_for_status ()
67-         response_data  =  await   response .json ()
67+         response_data  =  response .json ()
6868        assert  isinstance (response_data , dict  |  list )  # nosec 
6969        return  response_data 
7070
Original file line number Diff line number Diff line change @@ -5670,7 +5670,7 @@ paths:
56705670            application/json :
56715671              schema :
56725672                items :
5673-                   $ref : ' #/components/schemas/DatasetMetaData ' 
5673+                   $ref : ' #/components/schemas/FileLocation ' 
56745674                type : array 
56755675                title : Response List Storage Locations 
56765676  /v0/storage/locations/{location_id}/datasets :
@@ -9296,6 +9296,20 @@ components:
92969296      required :
92979297      - date 
92989298      title : FeaturesDict 
9299+     FileLocation :
9300+       properties :
9301+         name :
9302+           type : string 
9303+           title : Name 
9304+         id :
9305+           type : integer 
9306+           title : Id 
9307+       additionalProperties : false 
9308+       type : object 
9309+       required :
9310+       - name 
9311+       - id 
9312+       title : FileLocation 
92999313    FileMetaData :
93009314      properties :
93019315        file_uuid :
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments