@planqk/planqk-api-sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.devcontainer/devcontainer.json +32 -0
- package/.devcontainer/post-create.sh +7 -0
- package/.env.template +2 -0
- package/.gitlab-ci.yml +71 -0
- package/.python-version +1 -0
- package/.releaserc.json +45 -0
- package/LICENSE +201 -0
- package/README-node.md +18 -0
- package/README-python.md +21 -0
- package/README.md +56 -0
- package/dist/Client.d.ts +32 -0
- package/dist/Client.js +60 -0
- package/dist/api/errors/BadRequestError.d.ts +8 -0
- package/dist/api/errors/BadRequestError.js +52 -0
- package/dist/api/errors/ForbiddenError.d.ts +8 -0
- package/dist/api/errors/ForbiddenError.js +52 -0
- package/dist/api/errors/InternalServerError.d.ts +8 -0
- package/dist/api/errors/InternalServerError.js +52 -0
- package/dist/api/errors/NotFoundError.d.ts +8 -0
- package/dist/api/errors/NotFoundError.js +52 -0
- package/dist/api/errors/UnauthorizedError.d.ts +8 -0
- package/dist/api/errors/UnauthorizedError.js +52 -0
- package/dist/api/errors/index.d.ts +5 -0
- package/dist/api/errors/index.js +21 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/dataPools/client/Client.d.ts +177 -0
- package/dist/api/resources/dataPools/client/Client.js +676 -0
- package/dist/api/resources/dataPools/client/index.d.ts +2 -0
- package/dist/api/resources/dataPools/client/index.js +17 -0
- package/dist/api/resources/dataPools/client/requests/AddDataPoolFileRequest.d.ts +14 -0
- package/dist/api/resources/dataPools/client/requests/AddDataPoolFileRequest.js +5 -0
- package/dist/api/resources/dataPools/client/requests/CreateDataPoolRequest.d.ts +10 -0
- package/dist/api/resources/dataPools/client/requests/CreateDataPoolRequest.js +5 -0
- package/dist/api/resources/dataPools/client/requests/UpdateDataPoolRequest.d.ts +12 -0
- package/dist/api/resources/dataPools/client/requests/UpdateDataPoolRequest.js +5 -0
- package/dist/api/resources/dataPools/client/requests/index.d.ts +3 -0
- package/dist/api/resources/dataPools/client/requests/index.js +2 -0
- package/dist/api/resources/dataPools/index.d.ts +1 -0
- package/dist/api/resources/dataPools/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +41 -0
- package/dist/api/types/DataPoolDto.d.ts +23 -0
- package/dist/api/types/DataPoolDto.js +14 -0
- package/dist/api/types/DataPoolFileDto.d.ts +12 -0
- package/dist/api/types/DataPoolFileDto.js +5 -0
- package/dist/api/types/OauthScope.d.ts +9 -0
- package/dist/api/types/OauthScope.js +9 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +19 -0
- package/dist/core/fetcher/APIResponse.d.ts +20 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
- package/dist/core/fetcher/BinaryResponse.js +17 -0
- package/dist/core/fetcher/Fetcher.d.ts +40 -0
- package/dist/core/fetcher/Fetcher.js +105 -0
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +85 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +94 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +13 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +8 -0
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +32 -0
- package/dist/core/fetcher/getFetchFn.d.ts +1 -0
- package/dist/core/fetcher/getFetchFn.js +6 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +11 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +12 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +44 -0
- package/dist/core/fetcher/index.d.ts +9 -0
- package/dist/core/fetcher/index.js +15 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +33 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +29 -0
- package/dist/core/fetcher/signals.d.ts +11 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/file.d.ts +1 -0
- package/dist/core/file.js +2 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +16 -0
- package/dist/core/form-data-utils/FormDataWrapper.js +166 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
- package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
- package/dist/core/form-data-utils/index.d.ts +2 -0
- package/dist/core/form-data-utils/index.js +20 -0
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +29 -0
- package/dist/core/index.d.ts +5 -0
- package/dist/core/index.js +44 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +101 -0
- package/dist/core/url/index.d.ts +2 -0
- package/dist/core/url/index.js +7 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +49 -0
- package/dist/core/url/qs.d.ts +6 -0
- package/dist/core/url/qs.js +67 -0
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/PlanqkApiError.d.ts +15 -0
- package/dist/errors/PlanqkApiError.js +33 -0
- package/dist/errors/PlanqkApiTimeoutError.d.ts +6 -0
- package/dist/errors/PlanqkApiTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +44 -0
- package/eslint.config.mjs +11 -0
- package/fern/fern.config.json +4 -0
- package/fern/generators.yml +25 -0
- package/fern/openapi/openapi.json +610 -0
- package/notebooks/python-sdk.ipynb +218 -0
- package/package.json +48 -0
- package/planqk/__init__.py +0 -0
- package/planqk/api/__init__.py +1 -0
- package/planqk/api/_version.py +1 -0
- package/planqk/api/client.py +19 -0
- package/planqk/api/credentials.py +103 -0
- package/planqk/api/sdk/__init__.py +25 -0
- package/planqk/api/sdk/client.py +153 -0
- package/planqk/api/sdk/core/__init__.py +52 -0
- package/planqk/api/sdk/core/api_error.py +23 -0
- package/planqk/api/sdk/core/client_wrapper.py +76 -0
- package/planqk/api/sdk/core/datetime_utils.py +28 -0
- package/planqk/api/sdk/core/file.py +67 -0
- package/planqk/api/sdk/core/force_multipart.py +16 -0
- package/planqk/api/sdk/core/http_client.py +543 -0
- package/planqk/api/sdk/core/http_response.py +55 -0
- package/planqk/api/sdk/core/jsonable_encoder.py +100 -0
- package/planqk/api/sdk/core/pydantic_utilities.py +255 -0
- package/planqk/api/sdk/core/query_encoder.py +58 -0
- package/planqk/api/sdk/core/remove_none_from_dict.py +11 -0
- package/planqk/api/sdk/core/request_options.py +35 -0
- package/planqk/api/sdk/core/serialization.py +276 -0
- package/planqk/api/sdk/data_pools/__init__.py +4 -0
- package/planqk/api/sdk/data_pools/client.py +700 -0
- package/planqk/api/sdk/data_pools/raw_client.py +1650 -0
- package/planqk/api/sdk/environment.py +7 -0
- package/planqk/api/sdk/errors/__init__.py +11 -0
- package/planqk/api/sdk/errors/bad_request_error.py +10 -0
- package/planqk/api/sdk/errors/forbidden_error.py +10 -0
- package/planqk/api/sdk/errors/internal_server_error.py +10 -0
- package/planqk/api/sdk/errors/not_found_error.py +10 -0
- package/planqk/api/sdk/errors/unauthorized_error.py +10 -0
- package/planqk/api/sdk/types/__init__.py +10 -0
- package/planqk/api/sdk/types/data_pool_dto.py +33 -0
- package/planqk/api/sdk/types/data_pool_dto_current_user_permission.py +5 -0
- package/planqk/api/sdk/types/data_pool_file_dto.py +27 -0
- package/planqk/api/sdk/types/oauth_scope.py +5 -0
- package/pyproject.toml +51 -0
- package/scripts/update-version.sh +6 -0
- package/src/Client.ts +53 -0
- package/src/api/errors/BadRequestError.ts +18 -0
- package/src/api/errors/ForbiddenError.ts +18 -0
- package/src/api/errors/InternalServerError.ts +18 -0
- package/src/api/errors/NotFoundError.ts +18 -0
- package/src/api/errors/UnauthorizedError.ts +18 -0
- package/src/api/errors/index.ts +5 -0
- package/src/api/index.ts +3 -0
- package/src/api/resources/dataPools/client/Client.ts +825 -0
- package/src/api/resources/dataPools/client/index.ts +2 -0
- package/src/api/resources/dataPools/client/requests/AddDataPoolFileRequest.ts +17 -0
- package/src/api/resources/dataPools/client/requests/CreateDataPoolRequest.ts +11 -0
- package/src/api/resources/dataPools/client/requests/UpdateDataPoolRequest.ts +13 -0
- package/src/api/resources/dataPools/client/requests/index.ts +3 -0
- package/src/api/resources/dataPools/index.ts +1 -0
- package/src/api/resources/index.ts +2 -0
- package/src/api/types/DataPoolDto.ts +25 -0
- package/src/api/types/DataPoolFileDto.ts +13 -0
- package/src/api/types/OauthScope.ts +10 -0
- package/src/api/types/index.ts +3 -0
- package/src/core/fetcher/APIResponse.ts +23 -0
- package/src/core/fetcher/BinaryResponse.ts +36 -0
- package/src/core/fetcher/Fetcher.ts +163 -0
- package/src/core/fetcher/Headers.ts +93 -0
- package/src/core/fetcher/HttpResponsePromise.ts +116 -0
- package/src/core/fetcher/RawResponse.ts +61 -0
- package/src/core/fetcher/ResponseWithBody.ts +7 -0
- package/src/core/fetcher/Supplier.ts +11 -0
- package/src/core/fetcher/createRequestUrl.ts +6 -0
- package/src/core/fetcher/getErrorResponseBody.ts +32 -0
- package/src/core/fetcher/getFetchFn.ts +3 -0
- package/src/core/fetcher/getHeader.ts +8 -0
- package/src/core/fetcher/getRequestBody.ts +16 -0
- package/src/core/fetcher/getResponseBody.ts +43 -0
- package/src/core/fetcher/index.ts +9 -0
- package/src/core/fetcher/makeRequest.ts +44 -0
- package/src/core/fetcher/requestWithRetries.ts +33 -0
- package/src/core/fetcher/signals.ts +38 -0
- package/src/core/file.ts +11 -0
- package/src/core/form-data-utils/FormDataWrapper.ts +176 -0
- package/src/core/form-data-utils/encodeAsFormParameter.ts +12 -0
- package/src/core/form-data-utils/index.ts +2 -0
- package/src/core/headers.ts +35 -0
- package/src/core/index.ts +5 -0
- package/src/core/json.ts +27 -0
- package/src/core/runtime/index.ts +1 -0
- package/src/core/runtime/runtime.ts +133 -0
- package/src/core/url/index.ts +2 -0
- package/src/core/url/join.ts +55 -0
- package/src/core/url/qs.ts +74 -0
- package/src/environments.ts +9 -0
- package/src/errors/PlanqkApiError.ts +55 -0
- package/src/errors/PlanqkApiTimeoutError.ts +10 -0
- package/src/errors/index.ts +2 -0
- package/src/index.test.ts +17 -0
- package/src/index.ts +4 -0
- package/tsconfig.json +18 -0
- package/uv.lock +1102 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "PLANQK Platform API",
|
|
5
|
+
"description": "Part of the OpenAPI specification of PLANQK.",
|
|
6
|
+
"contact": {
|
|
7
|
+
"name": "Kipu Quantum GmbH",
|
|
8
|
+
"url": "https://kipu-quantum.com",
|
|
9
|
+
"email": "support@planqk.de"
|
|
10
|
+
},
|
|
11
|
+
"version": "1.0"
|
|
12
|
+
},
|
|
13
|
+
"servers": [
|
|
14
|
+
{
|
|
15
|
+
"url": "https://34.90.225.20.nip.io/qc-catalog",
|
|
16
|
+
"description": "Generated server url"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"paths": {
|
|
20
|
+
"/datapools/{id}": {
|
|
21
|
+
"get": {
|
|
22
|
+
"tags": ["Data Pools"],
|
|
23
|
+
"description": "Get a specific data pool (identified by its ID).",
|
|
24
|
+
"operationId": "getDataPool",
|
|
25
|
+
"parameters": [
|
|
26
|
+
{
|
|
27
|
+
"name": "id",
|
|
28
|
+
"in": "path",
|
|
29
|
+
"required": true,
|
|
30
|
+
"schema": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"format": "uuid"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"responses": {
|
|
37
|
+
"200": {
|
|
38
|
+
"description": "A data pool",
|
|
39
|
+
"content": {
|
|
40
|
+
"application/json": {
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/components/schemas/DataPoolDto"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"401": {
|
|
48
|
+
"description": "Unauthorized"
|
|
49
|
+
},
|
|
50
|
+
"403": {
|
|
51
|
+
"description": "Forbidden"
|
|
52
|
+
},
|
|
53
|
+
"404": {
|
|
54
|
+
"description": "Not Found"
|
|
55
|
+
},
|
|
56
|
+
"500": {
|
|
57
|
+
"description": "Internal Server Error"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"security": [
|
|
61
|
+
{
|
|
62
|
+
"oauth2": []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"apiKey": []
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"put": {
|
|
70
|
+
"tags": ["Data Pools"],
|
|
71
|
+
"description": "Update an existing data pool (identified by its ID).",
|
|
72
|
+
"operationId": "updateDataPool",
|
|
73
|
+
"parameters": [
|
|
74
|
+
{
|
|
75
|
+
"name": "id",
|
|
76
|
+
"in": "path",
|
|
77
|
+
"required": true,
|
|
78
|
+
"schema": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"format": "uuid"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"requestBody": {
|
|
85
|
+
"content": {
|
|
86
|
+
"application/json": {
|
|
87
|
+
"schema": {
|
|
88
|
+
"$ref": "#/components/schemas/UpdateDataPoolRequest"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": true
|
|
93
|
+
},
|
|
94
|
+
"responses": {
|
|
95
|
+
"200": {
|
|
96
|
+
"description": "Data pool is saved",
|
|
97
|
+
"content": {
|
|
98
|
+
"application/json": {
|
|
99
|
+
"schema": {
|
|
100
|
+
"$ref": "#/components/schemas/DataPoolDto"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"400": {
|
|
106
|
+
"description": "Bad Request"
|
|
107
|
+
},
|
|
108
|
+
"401": {
|
|
109
|
+
"description": "Unauthorized"
|
|
110
|
+
},
|
|
111
|
+
"403": {
|
|
112
|
+
"description": "Forbidden"
|
|
113
|
+
},
|
|
114
|
+
"404": {
|
|
115
|
+
"description": "Not Found"
|
|
116
|
+
},
|
|
117
|
+
"500": {
|
|
118
|
+
"description": "Internal Server Error"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"security": [
|
|
122
|
+
{
|
|
123
|
+
"oauth2": []
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"apiKey": []
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"delete": {
|
|
131
|
+
"tags": ["Data Pools"],
|
|
132
|
+
"description": "Delete a specific data pool (identified by its ID).",
|
|
133
|
+
"operationId": "deleteDataPool",
|
|
134
|
+
"parameters": [
|
|
135
|
+
{
|
|
136
|
+
"name": "id",
|
|
137
|
+
"in": "path",
|
|
138
|
+
"required": true,
|
|
139
|
+
"schema": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"format": "uuid"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"responses": {
|
|
146
|
+
"204": {
|
|
147
|
+
"description": "Data pool is deleted"
|
|
148
|
+
},
|
|
149
|
+
"401": {
|
|
150
|
+
"description": "Unauthorized"
|
|
151
|
+
},
|
|
152
|
+
"403": {
|
|
153
|
+
"description": "Forbidden"
|
|
154
|
+
},
|
|
155
|
+
"404": {
|
|
156
|
+
"description": "Not Found"
|
|
157
|
+
},
|
|
158
|
+
"500": {
|
|
159
|
+
"description": "Internal Server Error"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"security": [
|
|
163
|
+
{
|
|
164
|
+
"oauth2": []
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"apiKey": []
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"/datapools": {
|
|
173
|
+
"get": {
|
|
174
|
+
"tags": ["Data Pools"],
|
|
175
|
+
"description": "Get a list of all data pools for the current user.",
|
|
176
|
+
"operationId": "getDataPools",
|
|
177
|
+
"responses": {
|
|
178
|
+
"200": {
|
|
179
|
+
"description": "List of data pools",
|
|
180
|
+
"content": {
|
|
181
|
+
"application/json": {
|
|
182
|
+
"schema": {
|
|
183
|
+
"type": "array",
|
|
184
|
+
"items": {
|
|
185
|
+
"$ref": "#/components/schemas/DataPoolDto"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"401": {
|
|
192
|
+
"description": "Unauthorized"
|
|
193
|
+
},
|
|
194
|
+
"403": {
|
|
195
|
+
"description": "Forbidden"
|
|
196
|
+
},
|
|
197
|
+
"404": {
|
|
198
|
+
"description": "Not Found"
|
|
199
|
+
},
|
|
200
|
+
"500": {
|
|
201
|
+
"description": "Internal Server Error"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"security": [
|
|
205
|
+
{
|
|
206
|
+
"oauth2": []
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"apiKey": []
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"post": {
|
|
214
|
+
"tags": ["Data Pools"],
|
|
215
|
+
"description": "Create a new data pool.",
|
|
216
|
+
"operationId": "createDataPool",
|
|
217
|
+
"requestBody": {
|
|
218
|
+
"content": {
|
|
219
|
+
"application/json": {
|
|
220
|
+
"schema": {
|
|
221
|
+
"$ref": "#/components/schemas/CreateDataPoolRequest"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"required": true
|
|
226
|
+
},
|
|
227
|
+
"responses": {
|
|
228
|
+
"201": {
|
|
229
|
+
"description": "Data pool is created",
|
|
230
|
+
"content": {
|
|
231
|
+
"application/json": {
|
|
232
|
+
"schema": {
|
|
233
|
+
"$ref": "#/components/schemas/DataPoolDto"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"400": {
|
|
239
|
+
"description": "Bad Request"
|
|
240
|
+
},
|
|
241
|
+
"401": {
|
|
242
|
+
"description": "Unauthorized"
|
|
243
|
+
},
|
|
244
|
+
"403": {
|
|
245
|
+
"description": "Forbidden"
|
|
246
|
+
},
|
|
247
|
+
"404": {
|
|
248
|
+
"description": "Not Found"
|
|
249
|
+
},
|
|
250
|
+
"500": {
|
|
251
|
+
"description": "Internal Server Error"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"security": [
|
|
255
|
+
{
|
|
256
|
+
"oauth2": []
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"apiKey": []
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"/datapools/{id}/files": {
|
|
265
|
+
"get": {
|
|
266
|
+
"tags": ["Data Pools"],
|
|
267
|
+
"description": "Get all files associated with a specific data pool (identified by its ID).",
|
|
268
|
+
"operationId": "getDataPoolFiles",
|
|
269
|
+
"parameters": [
|
|
270
|
+
{
|
|
271
|
+
"name": "id",
|
|
272
|
+
"in": "path",
|
|
273
|
+
"required": true,
|
|
274
|
+
"schema": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"format": "uuid"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"responses": {
|
|
281
|
+
"200": {
|
|
282
|
+
"description": "List of files in the data pool",
|
|
283
|
+
"content": {
|
|
284
|
+
"application/json": {
|
|
285
|
+
"schema": {
|
|
286
|
+
"type": "array",
|
|
287
|
+
"items": {
|
|
288
|
+
"$ref": "#/components/schemas/DataPoolFileDto"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"401": {
|
|
295
|
+
"description": "Unauthorized"
|
|
296
|
+
},
|
|
297
|
+
"403": {
|
|
298
|
+
"description": "Forbidden"
|
|
299
|
+
},
|
|
300
|
+
"404": {
|
|
301
|
+
"description": "Not Found"
|
|
302
|
+
},
|
|
303
|
+
"500": {
|
|
304
|
+
"description": "Internal Server Error"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"security": [
|
|
308
|
+
{
|
|
309
|
+
"oauth2": []
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"apiKey": []
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
"post": {
|
|
317
|
+
"tags": ["Data Pools"],
|
|
318
|
+
"description": "Add a new file to a specific data pool (identified by its ID).",
|
|
319
|
+
"operationId": "addDataPoolFile",
|
|
320
|
+
"parameters": [
|
|
321
|
+
{
|
|
322
|
+
"name": "id",
|
|
323
|
+
"in": "path",
|
|
324
|
+
"required": true,
|
|
325
|
+
"schema": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"format": "uuid"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"name": "filename",
|
|
332
|
+
"in": "query",
|
|
333
|
+
"required": false,
|
|
334
|
+
"schema": {
|
|
335
|
+
"type": "string"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"requestBody": {
|
|
340
|
+
"content": {
|
|
341
|
+
"multipart/form-data": {
|
|
342
|
+
"schema": {
|
|
343
|
+
"type": "object",
|
|
344
|
+
"properties": {
|
|
345
|
+
"file": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"format": "binary"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"required": ["file"]
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"responses": {
|
|
356
|
+
"201": {
|
|
357
|
+
"description": "File is added to the data pool",
|
|
358
|
+
"content": {
|
|
359
|
+
"application/json": {
|
|
360
|
+
"schema": {
|
|
361
|
+
"$ref": "#/components/schemas/DataPoolFileDto"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"400": {
|
|
367
|
+
"description": "Bad Request"
|
|
368
|
+
},
|
|
369
|
+
"401": {
|
|
370
|
+
"description": "Unauthorized"
|
|
371
|
+
},
|
|
372
|
+
"403": {
|
|
373
|
+
"description": "Forbidden"
|
|
374
|
+
},
|
|
375
|
+
"404": {
|
|
376
|
+
"description": "Not Found"
|
|
377
|
+
},
|
|
378
|
+
"500": {
|
|
379
|
+
"description": "Internal Server Error"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"security": [
|
|
383
|
+
{
|
|
384
|
+
"oauth2": []
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"apiKey": []
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"/datapools/{id}/files/{fileId}": {
|
|
393
|
+
"get": {
|
|
394
|
+
"tags": ["Data Pools"],
|
|
395
|
+
"description": "Get the content of a specific file from a data pool (both file and data pool identified by their ID).",
|
|
396
|
+
"operationId": "getDataPoolFile",
|
|
397
|
+
"parameters": [
|
|
398
|
+
{
|
|
399
|
+
"name": "id",
|
|
400
|
+
"in": "path",
|
|
401
|
+
"required": true,
|
|
402
|
+
"schema": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"format": "uuid"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "fileId",
|
|
409
|
+
"in": "path",
|
|
410
|
+
"required": true,
|
|
411
|
+
"schema": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"format": "uuid"
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"responses": {
|
|
418
|
+
"200": {
|
|
419
|
+
"description": "The file content",
|
|
420
|
+
"content": {
|
|
421
|
+
"application/octet-stream": {
|
|
422
|
+
"schema": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"format": "binary"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"304": {
|
|
430
|
+
"description": "Not Modified"
|
|
431
|
+
},
|
|
432
|
+
"401": {
|
|
433
|
+
"description": "Unauthorized"
|
|
434
|
+
},
|
|
435
|
+
"403": {
|
|
436
|
+
"description": "Forbidden"
|
|
437
|
+
},
|
|
438
|
+
"404": {
|
|
439
|
+
"description": "Not Found"
|
|
440
|
+
},
|
|
441
|
+
"500": {
|
|
442
|
+
"description": "Internal Server Error"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"security": [
|
|
446
|
+
{
|
|
447
|
+
"oauth2": []
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"apiKey": []
|
|
451
|
+
}
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
"delete": {
|
|
455
|
+
"tags": ["Data Pools"],
|
|
456
|
+
"description": "Delete a specific file from a data pool (both file and data pool identified by their IDs).",
|
|
457
|
+
"operationId": "deleteDataPoolFile",
|
|
458
|
+
"parameters": [
|
|
459
|
+
{
|
|
460
|
+
"name": "id",
|
|
461
|
+
"in": "path",
|
|
462
|
+
"required": true,
|
|
463
|
+
"schema": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"format": "uuid"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "fileId",
|
|
470
|
+
"in": "path",
|
|
471
|
+
"required": true,
|
|
472
|
+
"schema": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"format": "uuid"
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"responses": {
|
|
479
|
+
"204": {
|
|
480
|
+
"description": "File is deleted"
|
|
481
|
+
},
|
|
482
|
+
"401": {
|
|
483
|
+
"description": "Unauthorized"
|
|
484
|
+
},
|
|
485
|
+
"403": {
|
|
486
|
+
"description": "Forbidden"
|
|
487
|
+
},
|
|
488
|
+
"404": {
|
|
489
|
+
"description": "Not Found"
|
|
490
|
+
},
|
|
491
|
+
"500": {
|
|
492
|
+
"description": "Internal Server Error"
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"security": [
|
|
496
|
+
{
|
|
497
|
+
"oauth2": []
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"apiKey": []
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"components": {
|
|
507
|
+
"schemas": {
|
|
508
|
+
"UpdateDataPoolRequest": {
|
|
509
|
+
"type": "object",
|
|
510
|
+
"properties": {
|
|
511
|
+
"name": {
|
|
512
|
+
"type": "string"
|
|
513
|
+
},
|
|
514
|
+
"shortDescription": {
|
|
515
|
+
"type": "string"
|
|
516
|
+
},
|
|
517
|
+
"description": {
|
|
518
|
+
"type": "string"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"DataPoolDto": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"currentUserPermission": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"description": "The access permission role for this entity of the current user",
|
|
528
|
+
"enum": ["VIEWER", "MAINTAINER", "OWNER"],
|
|
529
|
+
"example": "OWNER",
|
|
530
|
+
"readOnly": true
|
|
531
|
+
},
|
|
532
|
+
"id": {
|
|
533
|
+
"type": "string",
|
|
534
|
+
"format": "uuid"
|
|
535
|
+
},
|
|
536
|
+
"name": {
|
|
537
|
+
"type": "string"
|
|
538
|
+
},
|
|
539
|
+
"shortDescription": {
|
|
540
|
+
"type": "string"
|
|
541
|
+
},
|
|
542
|
+
"description": {
|
|
543
|
+
"type": "string"
|
|
544
|
+
},
|
|
545
|
+
"createdAt": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"pattern": "^\\d{4}\\-\\d{2}\\-\\d{2}\\s{1}\\d{2}\\:\\d{2}\\:\\d{2}$"
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"CreateDataPoolRequest": {
|
|
552
|
+
"type": "object",
|
|
553
|
+
"properties": {
|
|
554
|
+
"name": {
|
|
555
|
+
"type": "string"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"DataPoolFileDto": {
|
|
560
|
+
"type": "object",
|
|
561
|
+
"properties": {
|
|
562
|
+
"id": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"format": "uuid"
|
|
565
|
+
},
|
|
566
|
+
"dataPoolId": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"format": "uuid"
|
|
569
|
+
},
|
|
570
|
+
"name": {
|
|
571
|
+
"type": "string"
|
|
572
|
+
},
|
|
573
|
+
"fullPath": {
|
|
574
|
+
"type": "string"
|
|
575
|
+
},
|
|
576
|
+
"contentType": {
|
|
577
|
+
"type": "string"
|
|
578
|
+
},
|
|
579
|
+
"contentLength": {
|
|
580
|
+
"type": "integer",
|
|
581
|
+
"format": "int64"
|
|
582
|
+
},
|
|
583
|
+
"createdAt": {
|
|
584
|
+
"type": "string",
|
|
585
|
+
"pattern": "^\\d{4}\\-\\d{2}\\-\\d{2}\\s{1}\\d{2}\\:\\d{2}\\:\\d{2}$"
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
"securitySchemes": {
|
|
591
|
+
"apiKey": {
|
|
592
|
+
"type": "apiKey",
|
|
593
|
+
"name": "X-Auth-Token",
|
|
594
|
+
"in": "header"
|
|
595
|
+
},
|
|
596
|
+
"oauth2": {
|
|
597
|
+
"type": "oauth2",
|
|
598
|
+
"flows": {
|
|
599
|
+
"password": {
|
|
600
|
+
"tokenUrl": "https://login.34.90.225.20.nip.io/realms/planqk/protocol/openid-connect/token",
|
|
601
|
+
"refreshUrl": "https://login.34.90.225.20.nip.io/realms/planqk/protocol/openid-connect/token",
|
|
602
|
+
"scopes": {
|
|
603
|
+
"profile": ""
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|