Skip to content

Commit ff8e67f

Browse files
committed
new api
1 parent 8cf43b3 commit ff8e67f

File tree

1 file changed

+214
-30
lines changed

1 file changed

+214
-30
lines changed

services/storage/openapi.json

Lines changed: 214 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@
7474
"content": {
7575
"application/json": {
7676
"schema": {
77-
"$ref": "#/components/schemas/Envelope_list_FileLocation__"
77+
"type": "array",
78+
"items": {
79+
"$ref": "#/components/schemas/FileLocation"
80+
},
81+
"title": "Response List Storage Locations V0 Locations Get"
7882
}
7983
}
8084
}
@@ -217,6 +221,76 @@
217221
}
218222
}
219223
},
224+
"/v0/locations/{location_id}/paths": {
225+
"get": {
226+
"tags": [
227+
"files"
228+
],
229+
"summary": "List Paths",
230+
"operationId": "list_paths_v0_locations__location_id__paths_get",
231+
"parameters": [
232+
{
233+
"name": "location_id",
234+
"in": "path",
235+
"required": true,
236+
"schema": {
237+
"type": "integer",
238+
"title": "Location Id"
239+
}
240+
},
241+
{
242+
"name": "user_id",
243+
"in": "query",
244+
"required": true,
245+
"schema": {
246+
"type": "integer",
247+
"exclusiveMinimum": true,
248+
"title": "User Id",
249+
"minimum": 0
250+
}
251+
},
252+
{
253+
"name": "file_filter",
254+
"in": "query",
255+
"required": false,
256+
"schema": {
257+
"anyOf": [
258+
{
259+
"type": "string",
260+
"format": "path"
261+
},
262+
{
263+
"type": "null"
264+
}
265+
],
266+
"title": "File Filter"
267+
}
268+
}
269+
],
270+
"responses": {
271+
"200": {
272+
"description": "Successful Response",
273+
"content": {
274+
"application/json": {
275+
"schema": {
276+
"$ref": "#/components/schemas/Page_FileMetaDataGet_"
277+
}
278+
}
279+
}
280+
},
281+
"422": {
282+
"description": "Validation Error",
283+
"content": {
284+
"application/json": {
285+
"schema": {
286+
"$ref": "#/components/schemas/HTTPValidationError"
287+
}
288+
}
289+
}
290+
}
291+
}
292+
}
293+
},
220294
"/v0/locations/{location_id}/files/metadata": {
221295
"get": {
222296
"tags": [
@@ -1678,35 +1752,6 @@
16781752
"type": "object",
16791753
"title": "Envelope[list[DatasetMetaDataGet]]"
16801754
},
1681-
"Envelope_list_FileLocation__": {
1682-
"properties": {
1683-
"data": {
1684-
"anyOf": [
1685-
{
1686-
"items": {
1687-
"$ref": "#/components/schemas/FileLocation"
1688-
},
1689-
"type": "array"
1690-
},
1691-
{
1692-
"type": "null"
1693-
}
1694-
],
1695-
"title": "Data"
1696-
},
1697-
"error": {
1698-
"anyOf": [
1699-
{},
1700-
{
1701-
"type": "null"
1702-
}
1703-
],
1704-
"title": "Error"
1705-
}
1706-
},
1707-
"type": "object",
1708-
"title": "Envelope[list[FileLocation]]"
1709-
},
17101755
"Envelope_list_FileMetaDataGet__": {
17111756
"properties": {
17121757
"data": {
@@ -2256,6 +2301,145 @@
22562301
],
22572302
"title": "LinkType"
22582303
},
2304+
"Links": {
2305+
"properties": {
2306+
"first": {
2307+
"anyOf": [
2308+
{
2309+
"type": "string"
2310+
},
2311+
{
2312+
"type": "null"
2313+
}
2314+
],
2315+
"title": "First"
2316+
},
2317+
"last": {
2318+
"anyOf": [
2319+
{
2320+
"type": "string"
2321+
},
2322+
{
2323+
"type": "null"
2324+
}
2325+
],
2326+
"title": "Last"
2327+
},
2328+
"self": {
2329+
"anyOf": [
2330+
{
2331+
"type": "string"
2332+
},
2333+
{
2334+
"type": "null"
2335+
}
2336+
],
2337+
"title": "Self"
2338+
},
2339+
"next": {
2340+
"anyOf": [
2341+
{
2342+
"type": "string"
2343+
},
2344+
{
2345+
"type": "null"
2346+
}
2347+
],
2348+
"title": "Next"
2349+
},
2350+
"prev": {
2351+
"anyOf": [
2352+
{
2353+
"type": "string"
2354+
},
2355+
{
2356+
"type": "null"
2357+
}
2358+
],
2359+
"title": "Prev"
2360+
}
2361+
},
2362+
"type": "object",
2363+
"required": [
2364+
"first",
2365+
"last",
2366+
"self",
2367+
"next",
2368+
"prev"
2369+
],
2370+
"title": "Links"
2371+
},
2372+
"Page_FileMetaDataGet_": {
2373+
"properties": {
2374+
"items": {
2375+
"items": {
2376+
"$ref": "#/components/schemas/FileMetaDataGet"
2377+
},
2378+
"type": "array",
2379+
"title": "Items"
2380+
},
2381+
"total": {
2382+
"anyOf": [
2383+
{
2384+
"type": "integer",
2385+
"minimum": 0
2386+
},
2387+
{
2388+
"type": "null"
2389+
}
2390+
],
2391+
"title": "Total"
2392+
},
2393+
"page": {
2394+
"anyOf": [
2395+
{
2396+
"type": "integer",
2397+
"minimum": 1
2398+
},
2399+
{
2400+
"type": "null"
2401+
}
2402+
],
2403+
"title": "Page"
2404+
},
2405+
"size": {
2406+
"anyOf": [
2407+
{
2408+
"type": "integer",
2409+
"minimum": 1
2410+
},
2411+
{
2412+
"type": "null"
2413+
}
2414+
],
2415+
"title": "Size"
2416+
},
2417+
"pages": {
2418+
"anyOf": [
2419+
{
2420+
"type": "integer",
2421+
"minimum": 0
2422+
},
2423+
{
2424+
"type": "null"
2425+
}
2426+
],
2427+
"title": "Pages"
2428+
},
2429+
"links": {
2430+
"$ref": "#/components/schemas/Links"
2431+
}
2432+
},
2433+
"type": "object",
2434+
"required": [
2435+
"items",
2436+
"total",
2437+
"page",
2438+
"size",
2439+
"links"
2440+
],
2441+
"title": "Page[FileMetaDataGet]"
2442+
},
22592443
"S3Settings": {
22602444
"properties": {
22612445
"S3_ACCESS_KEY": {

0 commit comments

Comments
 (0)