|
2 | 2 | "openapi": "3.1.0", |
3 | 3 | "info": { |
4 | 4 | "title": "simcore_service_storage", |
5 | | - "description": "Service to auto-scale swarm", |
| 5 | + "description": "Service that manages osparc storage backend", |
6 | 6 | "version": "0.6.0" |
7 | 7 | }, |
8 | 8 | "paths": { |
|
979 | 979 | } |
980 | 980 | } |
981 | 981 | }, |
| 982 | + "/v0/locations/{location_id}/paths": { |
| 983 | + "get": { |
| 984 | + "tags": [ |
| 985 | + "files" |
| 986 | + ], |
| 987 | + "summary": "List Paths", |
| 988 | + "description": "Returns one level of files (paginated)", |
| 989 | + "operationId": "list_paths_v0_locations__location_id__paths_get", |
| 990 | + "parameters": [ |
| 991 | + { |
| 992 | + "name": "location_id", |
| 993 | + "in": "path", |
| 994 | + "required": true, |
| 995 | + "schema": { |
| 996 | + "type": "integer", |
| 997 | + "title": "Location Id" |
| 998 | + } |
| 999 | + }, |
| 1000 | + { |
| 1001 | + "name": "user_id", |
| 1002 | + "in": "query", |
| 1003 | + "required": true, |
| 1004 | + "schema": { |
| 1005 | + "type": "integer", |
| 1006 | + "exclusiveMinimum": true, |
| 1007 | + "title": "User Id", |
| 1008 | + "minimum": 0 |
| 1009 | + } |
| 1010 | + }, |
| 1011 | + { |
| 1012 | + "name": "file_filter", |
| 1013 | + "in": "query", |
| 1014 | + "required": false, |
| 1015 | + "schema": { |
| 1016 | + "anyOf": [ |
| 1017 | + { |
| 1018 | + "type": "string", |
| 1019 | + "format": "path" |
| 1020 | + }, |
| 1021 | + { |
| 1022 | + "type": "null" |
| 1023 | + } |
| 1024 | + ], |
| 1025 | + "title": "File Filter" |
| 1026 | + } |
| 1027 | + }, |
| 1028 | + { |
| 1029 | + "name": "cursor", |
| 1030 | + "in": "query", |
| 1031 | + "required": false, |
| 1032 | + "schema": { |
| 1033 | + "anyOf": [ |
| 1034 | + { |
| 1035 | + "type": "string" |
| 1036 | + }, |
| 1037 | + { |
| 1038 | + "type": "null" |
| 1039 | + } |
| 1040 | + ], |
| 1041 | + "title": "Cursor" |
| 1042 | + } |
| 1043 | + }, |
| 1044 | + { |
| 1045 | + "name": "size", |
| 1046 | + "in": "query", |
| 1047 | + "required": false, |
| 1048 | + "schema": { |
| 1049 | + "type": "integer", |
| 1050 | + "maximum": 100, |
| 1051 | + "minimum": 0, |
| 1052 | + "default": 50, |
| 1053 | + "title": "Size" |
| 1054 | + } |
| 1055 | + } |
| 1056 | + ], |
| 1057 | + "responses": { |
| 1058 | + "200": { |
| 1059 | + "description": "Successful Response", |
| 1060 | + "content": { |
| 1061 | + "application/json": { |
| 1062 | + "schema": { |
| 1063 | + "$ref": "#/components/schemas/CursorPage_PathMetaDataGet_" |
| 1064 | + } |
| 1065 | + } |
| 1066 | + } |
| 1067 | + }, |
| 1068 | + "422": { |
| 1069 | + "description": "Validation Error", |
| 1070 | + "content": { |
| 1071 | + "application/json": { |
| 1072 | + "schema": { |
| 1073 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1074 | + } |
| 1075 | + } |
| 1076 | + } |
| 1077 | + } |
| 1078 | + } |
| 1079 | + } |
| 1080 | + }, |
982 | 1081 | "/v0/simcore-s3:access": { |
983 | 1082 | "post": { |
984 | 1083 | "tags": [ |
|
1320 | 1419 | ], |
1321 | 1420 | "title": "AppStatusCheck" |
1322 | 1421 | }, |
| 1422 | + "CursorPage_PathMetaDataGet_": { |
| 1423 | + "properties": { |
| 1424 | + "items": { |
| 1425 | + "items": { |
| 1426 | + "$ref": "#/components/schemas/PathMetaDataGet" |
| 1427 | + }, |
| 1428 | + "type": "array", |
| 1429 | + "title": "Items" |
| 1430 | + }, |
| 1431 | + "total": { |
| 1432 | + "anyOf": [ |
| 1433 | + { |
| 1434 | + "type": "integer" |
| 1435 | + }, |
| 1436 | + { |
| 1437 | + "type": "null" |
| 1438 | + } |
| 1439 | + ], |
| 1440 | + "title": "Total", |
| 1441 | + "description": "Total items" |
| 1442 | + }, |
| 1443 | + "current_page": { |
| 1444 | + "anyOf": [ |
| 1445 | + { |
| 1446 | + "type": "string" |
| 1447 | + }, |
| 1448 | + { |
| 1449 | + "type": "null" |
| 1450 | + } |
| 1451 | + ], |
| 1452 | + "title": "Current Page", |
| 1453 | + "description": "Cursor to refetch the current page" |
| 1454 | + }, |
| 1455 | + "current_page_backwards": { |
| 1456 | + "anyOf": [ |
| 1457 | + { |
| 1458 | + "type": "string" |
| 1459 | + }, |
| 1460 | + { |
| 1461 | + "type": "null" |
| 1462 | + } |
| 1463 | + ], |
| 1464 | + "title": "Current Page Backwards", |
| 1465 | + "description": "Cursor to refetch the current page starting from the last item" |
| 1466 | + }, |
| 1467 | + "previous_page": { |
| 1468 | + "anyOf": [ |
| 1469 | + { |
| 1470 | + "type": "string" |
| 1471 | + }, |
| 1472 | + { |
| 1473 | + "type": "null" |
| 1474 | + } |
| 1475 | + ], |
| 1476 | + "title": "Previous Page", |
| 1477 | + "description": "Cursor for the previous page" |
| 1478 | + }, |
| 1479 | + "next_page": { |
| 1480 | + "anyOf": [ |
| 1481 | + { |
| 1482 | + "type": "string" |
| 1483 | + }, |
| 1484 | + { |
| 1485 | + "type": "null" |
| 1486 | + } |
| 1487 | + ], |
| 1488 | + "title": "Next Page", |
| 1489 | + "description": "Cursor for the next page" |
| 1490 | + } |
| 1491 | + }, |
| 1492 | + "type": "object", |
| 1493 | + "required": [ |
| 1494 | + "items" |
| 1495 | + ], |
| 1496 | + "title": "CursorPage[PathMetaDataGet]" |
| 1497 | + }, |
1323 | 1498 | "DatasetMetaDataGet": { |
1324 | 1499 | "properties": { |
1325 | 1500 | "dataset_id": { |
|
2256 | 2431 | ], |
2257 | 2432 | "title": "LinkType" |
2258 | 2433 | }, |
| 2434 | + "PathMetaDataGet": { |
| 2435 | + "properties": { |
| 2436 | + "path": { |
| 2437 | + "type": "string", |
| 2438 | + "format": "path", |
| 2439 | + "title": "Path", |
| 2440 | + "description": "the path to the current path" |
| 2441 | + }, |
| 2442 | + "display_path": { |
| 2443 | + "type": "string", |
| 2444 | + "format": "path", |
| 2445 | + "title": "Display Path", |
| 2446 | + "description": "the path to display with UUID replaced" |
| 2447 | + }, |
| 2448 | + "file_meta_data": { |
| 2449 | + "anyOf": [ |
| 2450 | + { |
| 2451 | + "$ref": "#/components/schemas/FileMetaDataGet" |
| 2452 | + }, |
| 2453 | + { |
| 2454 | + "type": "null" |
| 2455 | + } |
| 2456 | + ], |
| 2457 | + "description": "if filled, this is the file meta data of the s3 object" |
| 2458 | + } |
| 2459 | + }, |
| 2460 | + "additionalProperties": false, |
| 2461 | + "type": "object", |
| 2462 | + "required": [ |
| 2463 | + "path", |
| 2464 | + "display_path" |
| 2465 | + ], |
| 2466 | + "title": "PathMetaDataGet" |
| 2467 | + }, |
2259 | 2468 | "S3Settings": { |
2260 | 2469 | "properties": { |
2261 | 2470 | "S3_ACCESS_KEY": { |
|
0 commit comments