PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 1 | { |
| 2 | "basePath": "/", |
| 3 | "paths": { |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 4 | "/producer_simulator/ei_job": {"post": { |
| 5 | "summary": "Callback for EI job creation", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 6 | "deprecated": false, |
| 7 | "produces": ["application/json"], |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 8 | "operationId": "jobCreatedCallbackUsingPOST", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 9 | "responses": { |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 10 | "200": {"description": "OK"}, |
| 11 | "201": {"description": "Created"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 12 | "401": {"description": "Unauthorized"}, |
| 13 | "403": {"description": "Forbidden"}, |
| 14 | "404": {"description": "Not Found"} |
| 15 | }, |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 16 | "parameters": [{ |
| 17 | "schema": {"$ref": "#/definitions/producer_ei_job_request"}, |
| 18 | "in": "body", |
| 19 | "name": "request", |
| 20 | "description": "request", |
| 21 | "required": true |
| 22 | }], |
| 23 | "tags": ["Producer Callbacks"], |
| 24 | "consumes": ["application/json"] |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 25 | }}, |
| 26 | "/A1-EI/v1/eitypes/{eiTypeId}": {"get": { |
| 27 | "summary": "Individual EI type", |
| 28 | "deprecated": false, |
| 29 | "produces": ["application/json"], |
| 30 | "operationId": "getEiTypeUsingGET", |
| 31 | "responses": { |
| 32 | "200": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 33 | "schema": {"$ref": "#/definitions/EiTypeObject"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 34 | "description": "EI type" |
| 35 | }, |
| 36 | "401": {"description": "Unauthorized"}, |
| 37 | "403": {"description": "Forbidden"}, |
| 38 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 39 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 40 | "description": "Enrichment Information type is not found" |
| 41 | } |
| 42 | }, |
| 43 | "parameters": [{ |
| 44 | "in": "path", |
| 45 | "name": "eiTypeId", |
| 46 | "description": "eiTypeId", |
| 47 | "type": "string", |
| 48 | "required": true |
| 49 | }], |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 50 | "tags": ["A1-EI (enrichment information)"] |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 51 | }}, |
PatrikBuhr | 530fa60 | 2020-10-27 10:53:39 +0100 | [diff] [blame] | 52 | "/consumer_simulator/eijobs/{eiJobId}/status": {"post": { |
| 53 | "summary": "Callback for EI job status", |
| 54 | "deprecated": false, |
| 55 | "produces": ["application/json"], |
| 56 | "operationId": "jobStatusCallbackUsingPOST", |
| 57 | "responses": { |
| 58 | "200": {"description": "OK"}, |
| 59 | "201": {"description": "Created"}, |
| 60 | "401": {"description": "Unauthorized"}, |
| 61 | "403": {"description": "Forbidden"}, |
| 62 | "404": {"description": "Not Found"} |
| 63 | }, |
| 64 | "parameters": [ |
| 65 | { |
| 66 | "in": "path", |
| 67 | "name": "eiJobId", |
| 68 | "description": "eiJobId", |
| 69 | "type": "string", |
| 70 | "required": true |
| 71 | }, |
| 72 | { |
| 73 | "schema": {"$ref": "#/definitions/EiJobStatusObject"}, |
| 74 | "in": "body", |
| 75 | "name": "status", |
| 76 | "description": "status", |
| 77 | "required": true |
| 78 | } |
| 79 | ], |
| 80 | "tags": ["Consumer Callbacks"], |
| 81 | "consumes": ["application/json"] |
| 82 | }}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 83 | "/ei-producer/v1/eitypes": {"get": { |
| 84 | "summary": "EI type identifiers", |
| 85 | "deprecated": false, |
| 86 | "produces": ["application/json"], |
| 87 | "operationId": "getEiTypeIdentifiersUsingGET_1", |
| 88 | "responses": { |
| 89 | "200": { |
| 90 | "schema": { |
| 91 | "type": "array", |
| 92 | "items": {"type": "string"} |
| 93 | }, |
| 94 | "description": "EI type identifiers" |
| 95 | }, |
| 96 | "401": {"description": "Unauthorized"}, |
| 97 | "403": {"description": "Forbidden"}, |
| 98 | "404": {"description": "Not Found"} |
| 99 | }, |
| 100 | "tags": ["Enrichment Data Producer API"] |
| 101 | }}, |
| 102 | "/A1-EI/v1/eitypes": {"get": { |
| 103 | "summary": "EI type identifiers", |
| 104 | "deprecated": false, |
| 105 | "produces": ["application/json"], |
| 106 | "operationId": "getEiTypeIdentifiersUsingGET", |
| 107 | "responses": { |
| 108 | "200": { |
| 109 | "schema": { |
| 110 | "type": "array", |
| 111 | "items": {"type": "string"} |
| 112 | }, |
| 113 | "description": "EI type identifiers" |
| 114 | }, |
| 115 | "401": {"description": "Unauthorized"}, |
| 116 | "403": {"description": "Forbidden"}, |
| 117 | "404": {"description": "Not Found"} |
| 118 | }, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 119 | "tags": ["A1-EI (enrichment information)"] |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 120 | }}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 121 | "/ei-producer/v1/eiproducers/{eiProducerId}/status": {"get": { |
| 122 | "summary": "EI producer status", |
| 123 | "deprecated": false, |
| 124 | "produces": ["application/json"], |
| 125 | "operationId": "getEiProducerStatusUsingGET", |
| 126 | "responses": { |
| 127 | "200": { |
| 128 | "schema": {"$ref": "#/definitions/producer_status"}, |
| 129 | "description": "EI jobs" |
| 130 | }, |
| 131 | "401": {"description": "Unauthorized"}, |
| 132 | "403": {"description": "Forbidden"}, |
| 133 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 134 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 135 | "description": "Enrichment Information producer is not found" |
| 136 | } |
| 137 | }, |
| 138 | "parameters": [{ |
| 139 | "in": "path", |
| 140 | "name": "eiProducerId", |
| 141 | "description": "eiProducerId", |
| 142 | "type": "string", |
| 143 | "required": true |
| 144 | }], |
| 145 | "tags": ["Enrichment Data Producer API"] |
| 146 | }}, |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 147 | "/producer_simulator/ei_job/{eiJobId}": {"delete": { |
| 148 | "summary": "Callback for EI job deletion", |
| 149 | "deprecated": false, |
| 150 | "produces": ["application/json"], |
| 151 | "operationId": "jobDeletedCallbackUsingDELETE", |
| 152 | "responses": { |
| 153 | "200": {"description": "OK"}, |
| 154 | "401": {"description": "Unauthorized"}, |
| 155 | "204": {"description": "No Content"}, |
| 156 | "403": {"description": "Forbidden"} |
| 157 | }, |
| 158 | "parameters": [{ |
| 159 | "in": "path", |
| 160 | "name": "eiJobId", |
| 161 | "description": "eiJobId", |
| 162 | "type": "string", |
| 163 | "required": true |
| 164 | }], |
| 165 | "tags": ["Producer Callbacks"] |
| 166 | }}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 167 | "/ei-producer/v1/eiproducers": {"get": { |
| 168 | "summary": "EI producer identifiers", |
| 169 | "deprecated": false, |
| 170 | "produces": ["application/json"], |
| 171 | "operationId": "getEiProducerIdentifiersUsingGET", |
| 172 | "responses": { |
| 173 | "200": { |
| 174 | "schema": { |
| 175 | "type": "array", |
| 176 | "items": {"type": "string"} |
| 177 | }, |
| 178 | "description": "EI producer identifiers" |
| 179 | }, |
| 180 | "401": {"description": "Unauthorized"}, |
| 181 | "403": {"description": "Forbidden"}, |
| 182 | "404": {"description": "Not Found"} |
| 183 | }, |
| 184 | "tags": ["Enrichment Data Producer API"] |
| 185 | }}, |
| 186 | "/ei-producer/v1/eitypes/{eiTypeId}": {"get": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 187 | "summary": "Individual EI type", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 188 | "deprecated": false, |
| 189 | "produces": ["application/json"], |
| 190 | "operationId": "getEiTypeUsingGET_1", |
| 191 | "responses": { |
| 192 | "200": { |
| 193 | "schema": {"$ref": "#/definitions/producer_ei_type_info"}, |
| 194 | "description": "EI type" |
| 195 | }, |
| 196 | "401": {"description": "Unauthorized"}, |
| 197 | "403": {"description": "Forbidden"}, |
| 198 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 199 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 200 | "description": "Enrichment Information type is not found" |
| 201 | } |
| 202 | }, |
| 203 | "parameters": [{ |
| 204 | "in": "path", |
| 205 | "name": "eiTypeId", |
| 206 | "description": "eiTypeId", |
| 207 | "type": "string", |
| 208 | "required": true |
| 209 | }], |
| 210 | "tags": ["Enrichment Data Producer API"] |
| 211 | }}, |
PatrikBuhr | b41c6e7 | 2020-10-02 12:47:00 +0200 | [diff] [blame] | 212 | "/status": {"get": { |
| 213 | "summary": "Returns status and statistics of this service", |
| 214 | "deprecated": false, |
| 215 | "produces": ["application/json"], |
| 216 | "operationId": "getStatusUsingGET", |
| 217 | "responses": { |
| 218 | "200": { |
| 219 | "schema": {"$ref": "#/definitions/status_info"}, |
| 220 | "description": "Service is living" |
| 221 | }, |
| 222 | "401": {"description": "Unauthorized"}, |
| 223 | "403": {"description": "Forbidden"}, |
| 224 | "404": {"description": "Not Found"} |
| 225 | }, |
| 226 | "tags": ["Service status"] |
| 227 | }}, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 228 | "/A1-EI/v1/eijobs/{eiJobId}": { |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 229 | "get": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 230 | "summary": "Individual EI job", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 231 | "deprecated": false, |
| 232 | "produces": ["application/json"], |
| 233 | "operationId": "getIndividualEiJobUsingGET", |
| 234 | "responses": { |
| 235 | "200": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 236 | "schema": {"$ref": "#/definitions/EiJobObject"}, |
| 237 | "description": "EI job" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 238 | }, |
| 239 | "401": {"description": "Unauthorized"}, |
| 240 | "403": {"description": "Forbidden"}, |
| 241 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 242 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
| 243 | "description": "Enrichment Information job is not found" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 244 | } |
| 245 | }, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 246 | "parameters": [{ |
| 247 | "in": "path", |
| 248 | "name": "eiJobId", |
| 249 | "description": "eiJobId", |
| 250 | "type": "string", |
| 251 | "required": true |
| 252 | }], |
| 253 | "tags": ["A1-EI (enrichment information)"] |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 254 | }, |
| 255 | "delete": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 256 | "summary": "Individual EI job", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 257 | "deprecated": false, |
| 258 | "produces": ["application/json"], |
| 259 | "operationId": "deleteIndividualEiJobUsingDELETE", |
| 260 | "responses": { |
| 261 | "200": {"description": "Not used"}, |
| 262 | "401": {"description": "Unauthorized"}, |
| 263 | "204": {"description": "Job deleted"}, |
| 264 | "403": {"description": "Forbidden"}, |
| 265 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 266 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
| 267 | "description": "Enrichment Information job is not found" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 268 | } |
| 269 | }, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 270 | "parameters": [{ |
| 271 | "in": "path", |
| 272 | "name": "eiJobId", |
| 273 | "description": "eiJobId", |
| 274 | "type": "string", |
| 275 | "required": true |
| 276 | }], |
| 277 | "tags": ["A1-EI (enrichment information)"] |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 278 | }, |
| 279 | "put": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 280 | "summary": "Individual EI job", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 281 | "deprecated": false, |
| 282 | "produces": ["application/json"], |
| 283 | "operationId": "putIndividualEiJobUsingPUT", |
| 284 | "responses": { |
| 285 | "200": {"description": "Job updated"}, |
| 286 | "201": {"description": "Job created"}, |
| 287 | "401": {"description": "Unauthorized"}, |
| 288 | "403": {"description": "Forbidden"}, |
| 289 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 290 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 291 | "description": "Enrichment Information type is not found" |
| 292 | } |
| 293 | }, |
| 294 | "parameters": [ |
| 295 | { |
| 296 | "in": "path", |
| 297 | "name": "eiJobId", |
| 298 | "description": "eiJobId", |
| 299 | "type": "string", |
| 300 | "required": true |
| 301 | }, |
| 302 | { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 303 | "schema": {"$ref": "#/definitions/EiJobObject"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 304 | "in": "body", |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 305 | "name": "eiJobObject", |
| 306 | "description": "eiJobObject", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 307 | "required": true |
| 308 | } |
| 309 | ], |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 310 | "tags": ["A1-EI (enrichment information)"], |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 311 | "consumes": ["application/json"] |
| 312 | } |
| 313 | }, |
| 314 | "/ei-producer/v1/eiproducers/{eiProducerId}": { |
| 315 | "get": { |
| 316 | "summary": "Individual EI producer", |
| 317 | "deprecated": false, |
| 318 | "produces": ["application/json"], |
| 319 | "operationId": "getEiProducerUsingGET", |
| 320 | "responses": { |
| 321 | "200": { |
| 322 | "schema": {"$ref": "#/definitions/producer_registration_info"}, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 323 | "description": "EI jobs" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 324 | }, |
| 325 | "401": {"description": "Unauthorized"}, |
| 326 | "403": {"description": "Forbidden"}, |
| 327 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 328 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 329 | "description": "Enrichment Information producer is not found" |
| 330 | } |
| 331 | }, |
| 332 | "parameters": [{ |
| 333 | "in": "path", |
| 334 | "name": "eiProducerId", |
| 335 | "description": "eiProducerId", |
| 336 | "type": "string", |
| 337 | "required": true |
| 338 | }], |
| 339 | "tags": ["Enrichment Data Producer API"] |
| 340 | }, |
| 341 | "delete": { |
| 342 | "summary": "Individual EI producer", |
| 343 | "deprecated": false, |
| 344 | "produces": ["application/json"], |
| 345 | "operationId": "deleteEiProducerUsingDELETE", |
| 346 | "responses": { |
| 347 | "200": {"description": "Not used"}, |
| 348 | "401": {"description": "Unauthorized"}, |
| 349 | "204": {"description": "Producer deleted"}, |
| 350 | "403": {"description": "Forbidden"}, |
| 351 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 352 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 353 | "description": "Producer is not found" |
| 354 | } |
| 355 | }, |
| 356 | "parameters": [{ |
| 357 | "in": "path", |
| 358 | "name": "eiProducerId", |
| 359 | "description": "eiProducerId", |
| 360 | "type": "string", |
| 361 | "required": true |
| 362 | }], |
| 363 | "tags": ["Enrichment Data Producer API"] |
| 364 | }, |
| 365 | "put": { |
| 366 | "summary": "Individual EI producer", |
| 367 | "deprecated": false, |
| 368 | "produces": ["application/json"], |
| 369 | "operationId": "putEiProducerUsingPUT", |
| 370 | "responses": { |
| 371 | "200": {"description": "Producer updated"}, |
| 372 | "201": {"description": "Producer created"}, |
| 373 | "401": {"description": "Unauthorized"}, |
| 374 | "403": {"description": "Forbidden"}, |
| 375 | "404": {"description": "Not Found"} |
| 376 | }, |
| 377 | "parameters": [ |
| 378 | { |
| 379 | "in": "path", |
| 380 | "name": "eiProducerId", |
| 381 | "description": "eiProducerId", |
| 382 | "type": "string", |
| 383 | "required": true |
| 384 | }, |
| 385 | { |
| 386 | "schema": {"$ref": "#/definitions/producer_registration_info"}, |
| 387 | "in": "body", |
| 388 | "name": "registrationInfo", |
| 389 | "description": "registrationInfo", |
| 390 | "required": true |
| 391 | } |
| 392 | ], |
| 393 | "tags": ["Enrichment Data Producer API"], |
| 394 | "consumes": ["application/json"] |
| 395 | } |
| 396 | }, |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 397 | "/producer_simulator/health_check": {"get": { |
| 398 | "summary": "Producer supervision", |
| 399 | "deprecated": false, |
| 400 | "produces": ["application/json"], |
| 401 | "operationId": "producerSupervisionUsingGET", |
| 402 | "responses": { |
| 403 | "200": { |
| 404 | "schema": {"type": "string"}, |
| 405 | "description": "OK" |
| 406 | }, |
| 407 | "401": {"description": "Unauthorized"}, |
| 408 | "403": {"description": "Forbidden"}, |
| 409 | "404": {"description": "Not Found"} |
| 410 | }, |
| 411 | "tags": ["Producer Callbacks"] |
| 412 | }}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 413 | "/ei-producer/v1/eiproducers/{eiProducerId}/eijobs": {"get": { |
| 414 | "summary": "EI job definitions", |
| 415 | "deprecated": false, |
| 416 | "produces": ["application/json"], |
| 417 | "description": "EI job definitions for one EI producer", |
| 418 | "operationId": "getEiProducerJobsUsingGET", |
| 419 | "responses": { |
| 420 | "200": { |
| 421 | "schema": { |
| 422 | "type": "array", |
| 423 | "items": {"$ref": "#/definitions/producer_ei_job_request"} |
| 424 | }, |
| 425 | "description": "EI jobs" |
| 426 | }, |
| 427 | "401": {"description": "Unauthorized"}, |
| 428 | "403": {"description": "Forbidden"}, |
| 429 | "404": { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 430 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 431 | "description": "Enrichment Information producer is not found" |
| 432 | } |
| 433 | }, |
| 434 | "parameters": [{ |
| 435 | "in": "path", |
| 436 | "name": "eiProducerId", |
| 437 | "description": "eiProducerId", |
| 438 | "type": "string", |
| 439 | "required": true |
| 440 | }], |
| 441 | "tags": ["Enrichment Data Producer API"] |
| 442 | }}, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 443 | "/A1-EI/v1/eijobs": {"get": { |
| 444 | "summary": "EI job identifiers", |
| 445 | "deprecated": false, |
| 446 | "produces": ["application/json"], |
| 447 | "description": "query for EI job identifiers", |
| 448 | "operationId": "getEiJobIdsUsingGET", |
| 449 | "responses": { |
| 450 | "200": { |
| 451 | "schema": { |
| 452 | "type": "array", |
| 453 | "items": {"type": "string"} |
| 454 | }, |
| 455 | "description": "EI job identifiers" |
| 456 | }, |
| 457 | "401": {"description": "Unauthorized"}, |
| 458 | "403": {"description": "Forbidden"}, |
| 459 | "404": { |
| 460 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
| 461 | "description": "Enrichment Information type is not found" |
| 462 | } |
| 463 | }, |
| 464 | "parameters": [ |
| 465 | { |
| 466 | "in": "query", |
| 467 | "allowEmptyValue": false, |
| 468 | "name": "eiTypeId", |
| 469 | "description": "selects EI jobs of matching EI type", |
| 470 | "type": "string", |
| 471 | "required": false |
| 472 | }, |
| 473 | { |
| 474 | "in": "query", |
| 475 | "allowEmptyValue": false, |
| 476 | "name": "owner", |
| 477 | "description": "selects EI jobs for one EI job owner", |
| 478 | "type": "string", |
| 479 | "required": false |
| 480 | } |
| 481 | ], |
| 482 | "tags": ["A1-EI (enrichment information)"] |
| 483 | }}, |
| 484 | "/A1-EI/v1/eijobs/{eiJobId}/status": {"get": { |
| 485 | "summary": "EI job status", |
| 486 | "deprecated": false, |
| 487 | "produces": ["application/json"], |
| 488 | "operationId": "getEiJobStatusUsingGET", |
| 489 | "responses": { |
| 490 | "200": { |
| 491 | "schema": {"$ref": "#/definitions/EiJobStatusObject"}, |
| 492 | "description": "EI job status" |
| 493 | }, |
| 494 | "401": {"description": "Unauthorized"}, |
| 495 | "403": {"description": "Forbidden"}, |
| 496 | "404": { |
| 497 | "schema": {"$ref": "#/definitions/ProblemDetails"}, |
| 498 | "description": "Enrichment Information job is not found" |
| 499 | } |
| 500 | }, |
| 501 | "parameters": [{ |
| 502 | "in": "path", |
| 503 | "name": "eiJobId", |
| 504 | "description": "eiJobId", |
| 505 | "type": "string", |
| 506 | "required": true |
| 507 | }], |
| 508 | "tags": ["A1-EI (enrichment information)"] |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 509 | }} |
| 510 | }, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 511 | "definitions": { |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 512 | "producer_ei_job_request": { |
| 513 | "description": "The body of the EI producer callbacks for EI job creation and deletion", |
| 514 | "type": "object", |
| 515 | "title": "producer_ei_job_request", |
| 516 | "required": ["ei_job_identity"], |
| 517 | "properties": { |
PatrikBuhr | 4bc05f1 | 2020-11-27 12:11:20 +0100 | [diff] [blame] | 518 | "owner": { |
| 519 | "description": "The owner of the job", |
| 520 | "type": "string" |
| 521 | }, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 522 | "ei_job_identity": { |
| 523 | "description": "Idenitity of the EI job", |
| 524 | "type": "string" |
| 525 | }, |
| 526 | "ei_job_data": { |
| 527 | "description": "Json for the job data", |
| 528 | "type": "object" |
| 529 | }, |
| 530 | "target_uri": { |
| 531 | "description": "URI for the target of the EI", |
| 532 | "type": "string" |
| 533 | }, |
| 534 | "ei_type_identity": { |
| 535 | "description": "Type idenitity for the job", |
| 536 | "type": "string" |
| 537 | } |
| 538 | } |
| 539 | }, |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 540 | "EiTypeObject": { |
| 541 | "description": "Information for an EI type", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 542 | "type": "object", |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 543 | "title": "EiTypeObject" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 544 | }, |
| 545 | "producer_ei_type_registration_info": { |
| 546 | "description": "Information for an EI type", |
| 547 | "type": "object", |
| 548 | "title": "producer_ei_type_registration_info", |
| 549 | "required": ["ei_type_identity"], |
| 550 | "properties": { |
| 551 | "ei_type_identity": { |
| 552 | "description": "EI type identity", |
| 553 | "type": "string" |
| 554 | }, |
| 555 | "ei_job_data_schema": { |
| 556 | "description": "Json schema for the job data", |
| 557 | "type": "object" |
| 558 | } |
| 559 | } |
| 560 | }, |
PatrikBuhr | b41c6e7 | 2020-10-02 12:47:00 +0200 | [diff] [blame] | 561 | "status_info": { |
| 562 | "type": "object", |
| 563 | "title": "status_info", |
| 564 | "properties": { |
| 565 | "no_of_producers": { |
| 566 | "format": "int32", |
| 567 | "description": "Number of EI producers", |
| 568 | "type": "integer" |
| 569 | }, |
| 570 | "no_of_jobs": { |
| 571 | "format": "int32", |
| 572 | "description": "Number of EI jobs", |
| 573 | "type": "integer" |
| 574 | }, |
| 575 | "no_of_types": { |
| 576 | "format": "int32", |
| 577 | "description": "Number of EI types", |
| 578 | "type": "integer" |
| 579 | }, |
| 580 | "status": { |
| 581 | "description": "status text", |
| 582 | "type": "string" |
| 583 | } |
| 584 | } |
| 585 | }, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 586 | "Mono«ResponseEntity«object»»": { |
| 587 | "type": "object", |
| 588 | "title": "Mono«ResponseEntity«object»»" |
| 589 | }, |
| 590 | "producer_ei_type_info": { |
| 591 | "description": "Information for an EI type", |
| 592 | "type": "object", |
| 593 | "title": "producer_ei_type_info", |
| 594 | "properties": { |
| 595 | "ei_producer_ids": { |
| 596 | "description": "Registered producers", |
| 597 | "type": "array", |
| 598 | "items": {"type": "string"} |
| 599 | }, |
| 600 | "ei_job_data_schema": { |
| 601 | "description": "Json schema for the job data", |
| 602 | "type": "object" |
| 603 | } |
| 604 | } |
| 605 | }, |
| 606 | "producer_registration_info": { |
| 607 | "description": "Information for an EI producer", |
| 608 | "type": "object", |
| 609 | "title": "producer_registration_info", |
| 610 | "required": [ |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 611 | "ei_job_callback_url", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 612 | "ei_producer_supervision_callback_url", |
| 613 | "supported_ei_types" |
| 614 | ], |
| 615 | "properties": { |
| 616 | "supported_ei_types": { |
| 617 | "description": "Supported EI types", |
| 618 | "type": "array", |
| 619 | "items": {"$ref": "#/definitions/producer_ei_type_registration_info"} |
| 620 | }, |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 621 | "ei_producer_supervision_callback_url": { |
| 622 | "description": "callback for producer supervision", |
| 623 | "type": "string" |
PatrikBuhr | 08d483a | 2020-10-29 10:01:13 +0100 | [diff] [blame] | 624 | }, |
| 625 | "ei_job_callback_url": { |
| 626 | "description": "callback for EI job", |
| 627 | "type": "string" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 628 | } |
| 629 | } |
| 630 | }, |
| 631 | "producer_status": { |
| 632 | "description": "Status for an EI Producer", |
| 633 | "type": "object", |
| 634 | "title": "producer_status", |
| 635 | "required": ["operational_state"], |
| 636 | "properties": {"operational_state": { |
| 637 | "description": "Operational state, values:\nENABLED: TBD\nDISABLED: TBD.", |
| 638 | "type": "string", |
| 639 | "enum": [ |
| 640 | "ENABLED", |
| 641 | "DISABLED" |
| 642 | ] |
| 643 | }} |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 644 | }, |
| 645 | "ProblemDetails": { |
| 646 | "description": "A problem detail to carry details in a HTTP response according to RFC 7807", |
| 647 | "type": "object", |
| 648 | "title": "ProblemDetails", |
| 649 | "properties": { |
| 650 | "detail": { |
| 651 | "description": "A human-readable explanation specific to this occurrence of the problem.", |
| 652 | "type": "string", |
| 653 | "example": "EI job type not found" |
| 654 | }, |
| 655 | "status": { |
| 656 | "format": "int32", |
| 657 | "description": "The HTTP status code generated by the origin server for this occurrence of the problem.", |
| 658 | "type": "integer", |
| 659 | "example": 404 |
| 660 | } |
| 661 | } |
| 662 | }, |
| 663 | "Void": { |
| 664 | "description": "Void/empty", |
| 665 | "type": "object", |
| 666 | "title": "Void" |
| 667 | }, |
| 668 | "EiJobStatusObject": { |
| 669 | "description": "Status for an EI job", |
| 670 | "type": "object", |
| 671 | "title": "EiJobStatusObject", |
| 672 | "required": ["eiJobStatus"], |
| 673 | "properties": {"eiJobStatus": { |
| 674 | "description": "values:\nENABLED: the A1-EI producer is able to deliver EI result for the EI job\nDISABLED: the A1-EI producer is unable to deliver EI result for the EI job", |
| 675 | "type": "string", |
| 676 | "enum": [ |
| 677 | "ENABLED", |
| 678 | "DISABLED" |
| 679 | ] |
| 680 | }} |
| 681 | }, |
| 682 | "EiJobObject": { |
| 683 | "description": "Information for an Enrichment Information Job", |
| 684 | "type": "object", |
| 685 | "title": "EiJobObject", |
| 686 | "required": [ |
| 687 | "eiTypeId", |
| 688 | "jobDefinition", |
| 689 | "jobOwner", |
| 690 | "jobResultUri" |
| 691 | ], |
| 692 | "properties": { |
| 693 | "eiTypeId": { |
| 694 | "description": "EI type Idenitifier of the EI job", |
| 695 | "type": "string" |
| 696 | }, |
| 697 | "jobResultUri": { |
| 698 | "description": "The target URI of the EI data", |
| 699 | "type": "string" |
| 700 | }, |
| 701 | "jobOwner": { |
| 702 | "description": "Identity of the owner of the job", |
| 703 | "type": "string" |
| 704 | }, |
| 705 | "jobStatusNotificationUri": { |
| 706 | "description": "The target of EI job status notifications", |
| 707 | "type": "string" |
| 708 | }, |
| 709 | "jobDefinition": { |
| 710 | "description": "EI type specific job data", |
| 711 | "type": "object" |
| 712 | } |
| 713 | } |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 714 | } |
| 715 | }, |
| 716 | "swagger": "2.0", |
| 717 | "info": { |
| 718 | "description": "This page lists all the rest apis for the service.", |
| 719 | "title": "Enrichment Data service", |
| 720 | "version": "1.0" |
| 721 | }, |
| 722 | "tags": [ |
| 723 | { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 724 | "name": "A1-EI (enrichment information)", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 725 | "description": "Consumer Controller" |
| 726 | }, |
| 727 | { |
PatrikBuhr | 530fa60 | 2020-10-27 10:53:39 +0100 | [diff] [blame] | 728 | "name": "Consumer Callbacks", |
| 729 | "description": "Consumer Simulator Controller" |
| 730 | }, |
| 731 | { |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 732 | "name": "Enrichment Data Producer API", |
| 733 | "description": "Producer Controller" |
| 734 | }, |
| 735 | { |
PatrikBuhr | dddded3 | 2020-10-21 15:39:33 +0200 | [diff] [blame] | 736 | "name": "Producer Callbacks", |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 737 | "description": "Producer Simulator Controller" |
PatrikBuhr | b41c6e7 | 2020-10-02 12:47:00 +0200 | [diff] [blame] | 738 | }, |
| 739 | { |
| 740 | "name": "Service status", |
| 741 | "description": "Status Controller" |
PatrikBuhr | 13b5a8e | 2020-10-02 09:26:06 +0200 | [diff] [blame] | 742 | } |
| 743 | ] |
elinuxhenrik | 7a09fbb | 2020-12-04 16:51:19 +0100 | [diff] [blame] | 744 | } |