7da2270b6ebae0fcda5749d8567b92506b898a44
[nonrtric.git] / information-coordinator-service / api / ics-api.json
1 {
2     "components": {"schemas": {
3         "consumer_information_type": {
4             "description": "Information for an Information type",
5             "type": "object",
6             "required": [
7                 "job_data_schema",
8                 "no_of_producers",
9                 "type_status"
10             ],
11             "properties": {
12                 "no_of_producers": {
13                     "format": "int32",
14                     "description": "The number of registered producers for the type",
15                     "type": "integer"
16                 },
17                 "type_status": {
18                     "description": "Allowed values: <br/>ENABLED: one or several producers for the information type are available <br/>DISABLED: no producers for the information type are available",
19                     "type": "string",
20                     "enum": [
21                         "ENABLED",
22                         "DISABLED"
23                     ]
24                 },
25                 "job_data_schema": {
26                     "description": "Json schema for the job data",
27                     "type": "object"
28                 }
29             }
30         },
31         "EiTypeObject": {
32             "description": "Information for an EI type",
33             "type": "object"
34         },
35         "service_status_info": {
36             "type": "object",
37             "required": [
38                 "no_of_jobs",
39                 "no_of_producers",
40                 "no_of_types",
41                 "status"
42             ],
43             "properties": {
44                 "no_of_producers": {
45                     "format": "int32",
46                     "description": "Number of Information Producers",
47                     "type": "integer"
48                 },
49                 "no_of_types": {
50                     "format": "int32",
51                     "description": "Number of Information Types",
52                     "type": "integer"
53                 },
54                 "no_of_jobs": {
55                     "format": "int32",
56                     "description": "Number of Information Jobs",
57                     "type": "integer"
58                 },
59                 "status": {
60                     "description": "status text",
61                     "type": "string"
62                 }
63             }
64         },
65         "producer_registration_info": {
66             "description": "Information for an Information Producer",
67             "type": "object",
68             "required": [
69                 "info_job_callback_url",
70                 "info_producer_supervision_callback_url",
71                 "supported_info_types"
72             ],
73             "properties": {
74                 "info_producer_supervision_callback_url": {
75                     "description": "callback for producer supervision",
76                     "type": "string"
77                 },
78                 "supported_info_types": {
79                     "description": "Supported Information Type IDs",
80                     "type": "array",
81                     "items": {
82                         "description": "Supported Information Type IDs",
83                         "type": "string"
84                     }
85                 },
86                 "info_job_callback_url": {
87                     "description": "callback for Information Job",
88                     "type": "string"
89                 }
90             }
91         },
92         "consumer_type_registration_info": {
93             "description": "Information for an Information type",
94             "type": "object",
95             "required": [
96                 "info_type_id",
97                 "job_data_schema",
98                 "status"
99             ],
100             "properties": {
101                 "info_type_id": {
102                     "description": "Information type identifier",
103                     "type": "string"
104                 },
105                 "job_data_schema": {
106                     "description": "Json schema for the job data",
107                     "type": "object"
108                 },
109                 "status": {
110                     "description": "Allowed values: <br/>REGISTERED: the information type has been registered <br/>DEREGISTERED: the information type has been removed",
111                     "type": "string",
112                     "enum": [
113                         "REGISTERED",
114                         "DEREGISTERED"
115                     ]
116                 }
117             }
118         },
119         "ProblemDetails": {
120             "description": "A problem detail to carry details in a HTTP response according to RFC 7807",
121             "type": "object",
122             "properties": {
123                 "detail": {
124                     "description": "A human-readable explanation specific to this occurrence of the problem.",
125                     "type": "string",
126                     "example": "Information Job type not found"
127                 },
128                 "status": {
129                     "format": "int32",
130                     "description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
131                     "type": "integer",
132                     "example": 404
133                 }
134             }
135         },
136         "EiJobStatusObject": {
137             "description": "Status for an EI job",
138             "type": "object",
139             "required": ["eiJobStatus"],
140             "properties": {"eiJobStatus": {
141                 "description": "Allowed values for EI job status: <br/>ENABLED: the A1-EI producer is able to deliver EI result for the EI job <br/>DISABLED: the A1-EI producer is unable to deliver EI result for the EI job",
142                 "type": "string",
143                 "enum": [
144                     "ENABLED",
145                     "DISABLED"
146                 ]
147             }}
148         },
149         "consumer_job_status": {
150             "description": "Status for an Information Job",
151             "type": "object",
152             "required": [
153                 "info_job_status",
154                 "producers"
155             ],
156             "properties": {
157                 "info_job_status": {
158                     "description": "Allowed values: <br/>ENABLED: the A1-Information producer is able to deliver result for the Information Job <br/>DISABLED: the A1-Information producer is unable to deliver result for the Information Job",
159                     "type": "string",
160                     "enum": [
161                         "ENABLED",
162                         "DISABLED"
163                     ]
164                 },
165                 "producers": {
166                     "description": "An array of all registered Information Producer Identifiers.",
167                     "type": "array",
168                     "items": {
169                         "description": "An array of all registered Information Producer Identifiers.",
170                         "type": "string"
171                     }
172                 }
173             }
174         },
175         "EiJobObject": {
176             "description": "Information for an Enrichment Information Job",
177             "type": "object",
178             "required": [
179                 "eiTypeId",
180                 "jobDefinition",
181                 "jobOwner",
182                 "jobResultUri"
183             ],
184             "properties": {
185                 "eiTypeId": {
186                     "description": "EI type Idenitifier of the EI job",
187                     "type": "string"
188                 },
189                 "jobResultUri": {
190                     "description": "The target URI of the EI data",
191                     "type": "string"
192                 },
193                 "jobOwner": {
194                     "description": "Identity of the owner of the job",
195                     "type": "string"
196                 },
197                 "statusNotificationUri": {
198                     "description": "The target of EI job status notifications",
199                     "type": "string"
200                 },
201                 "jobDefinition": {
202                     "description": "EI type specific job data",
203                     "type": "object"
204                 }
205             }
206         },
207         "producer_info_type_info": {
208             "description": "Information for an Information Type",
209             "type": "object",
210             "required": ["info_job_data_schema"],
211             "properties": {
212                 "info_type_information": {
213                     "description": "Type specific information for the information type",
214                     "type": "object"
215                 },
216                 "info_job_data_schema": {
217                     "description": "Json schema for the job data",
218                     "type": "object"
219                 }
220             }
221         },
222         "producer_info_job_request": {
223             "description": "The body of the Information Producer callbacks for Information Job creation and deletion",
224             "type": "object",
225             "required": ["info_job_identity"],
226             "properties": {
227                 "owner": {
228                     "description": "The owner of the job",
229                     "type": "string"
230                 },
231                 "last_updated": {
232                     "description": "The time when the job was last updated or created (ISO-8601)",
233                     "type": "string"
234                 },
235                 "info_job_identity": {
236                     "description": "Identity of the Information Job",
237                     "type": "string"
238                 },
239                 "target_uri": {
240                     "description": "URI for the target of the produced Information",
241                     "type": "string"
242                 },
243                 "info_job_data": {
244                     "description": "Json for the job data",
245                     "type": "object"
246                 },
247                 "info_type_identity": {
248                     "description": "Type identity for the job",
249                     "type": "string"
250                 }
251             }
252         },
253         "consumer_job": {
254             "description": "Information for an Enrichment Information Job",
255             "type": "object",
256             "required": [
257                 "info_type_id",
258                 "job_definition",
259                 "job_owner",
260                 "job_result_uri"
261             ],
262             "properties": {
263                 "info_type_id": {
264                     "description": "Information type Idenitifier of the subscription job",
265                     "type": "string"
266                 },
267                 "job_result_uri": {
268                     "description": "The target URI of the subscribed information",
269                     "type": "string"
270                 },
271                 "job_owner": {
272                     "description": "Identity of the owner of the job",
273                     "type": "string"
274                 },
275                 "job_definition": {
276                     "description": "Information type specific job data",
277                     "type": "object"
278                 },
279                 "status_notification_uri": {
280                     "description": "The target of Information subscription job status notifications",
281                     "type": "string"
282                 }
283             }
284         },
285         "producer_status": {
286             "description": "Status for an Info Producer",
287             "type": "object",
288             "required": ["operational_state"],
289             "properties": {"operational_state": {
290                 "description": "Represents the operational states",
291                 "type": "string",
292                 "enum": [
293                     "ENABLED",
294                     "DISABLED"
295                 ]
296             }}
297         },
298         "Void": {
299             "description": "Void/empty ",
300             "type": "object"
301         },
302         "consumer_type_subscription_info": {
303             "description": "Information for an information type subscription",
304             "type": "object",
305             "required": [
306                 "owner",
307                 "status_result_uri"
308             ],
309             "properties": {
310                 "owner": {
311                     "description": "Identity of the owner of the subscription",
312                     "type": "string"
313                 },
314                 "status_result_uri": {
315                     "description": "The target URI of the subscribed information",
316                     "type": "string"
317                 }
318             }
319         }
320     }},
321     "openapi": "3.0.1",
322     "paths": {
323         "/example_dataproducer/info_job/{infoJobId}": {"delete": {
324             "summary": "Callback for Information Job deletion",
325             "description": "The call is invoked to terminate a data subscription. The endpoint is provided by the Information Producer.",
326             "operationId": "jobDeletedCallback",
327             "responses": {"200": {
328                 "description": "OK",
329                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
330             }},
331             "parameters": [{
332                 "schema": {"type": "string"},
333                 "in": "path",
334                 "name": "infoJobId",
335                 "required": true
336             }],
337             "tags": ["Data producer (callbacks)"]
338         }},
339         "/data-producer/v1/info-types": {"get": {
340             "summary": "Info Type identifiers",
341             "operationId": "getInfoTypdentifiers",
342             "responses": {"200": {
343                 "description": "Info Type identifiers",
344                 "content": {"application/json": {"schema": {
345                     "type": "array",
346                     "items": {"type": "string"}
347                 }}}
348             }},
349             "tags": ["Data producer (registration)"]
350         }},
351         "/A1-EI/v1/eitypes/{eiTypeId}": {"get": {
352             "summary": "Individual EI type",
353             "operationId": "getEiType",
354             "responses": {
355                 "200": {
356                     "description": "EI type",
357                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EiTypeObject"}}}
358                 },
359                 "404": {
360                     "description": "Enrichment Information type is not found",
361                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
362                 }
363             },
364             "parameters": [{
365                 "schema": {"type": "string"},
366                 "in": "path",
367                 "name": "eiTypeId",
368                 "required": true
369             }],
370             "tags": ["A1-EI (registration)"]
371         }},
372         "/example_dataproducer/info_job": {"post": {
373             "summary": "Callback for Information Job creation/modification",
374             "requestBody": {
375                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/producer_info_job_request"}}},
376                 "required": true
377             },
378             "description": "The call is invoked to activate or to modify a data subscription. The endpoint is provided by the Information Producer.",
379             "operationId": "jobCreatedCallback",
380             "responses": {"200": {
381                 "description": "OK",
382                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
383             }},
384             "tags": ["Data producer (callbacks)"]
385         }},
386         "/data-producer/v1/info-types/{infoTypeId}": {
387             "get": {
388                 "summary": "Individual Information Type",
389                 "operationId": "getInfoType",
390                 "responses": {
391                     "200": {
392                         "description": "Info Type",
393                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/producer_info_type_info"}}}
394                     },
395                     "404": {
396                         "description": "Information type is not found",
397                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
398                     }
399                 },
400                 "parameters": [{
401                     "schema": {"type": "string"},
402                     "in": "path",
403                     "name": "infoTypeId",
404                     "required": true
405                 }],
406                 "tags": ["Data producer (registration)"]
407             },
408             "delete": {
409                 "summary": "Individual Information Type",
410                 "operationId": "deleteInfoType",
411                 "responses": {
412                     "200": {
413                         "description": "Not used",
414                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
415                     },
416                     "204": {
417                         "description": "Producer deleted",
418                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
419                     },
420                     "404": {
421                         "description": "Information type is not found",
422                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
423                     },
424                     "409": {
425                         "description": "The Information type has one or several active producers",
426                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
427                     }
428                 },
429                 "parameters": [{
430                     "schema": {"type": "string"},
431                     "in": "path",
432                     "name": "infoTypeId",
433                     "required": true
434                 }],
435                 "tags": ["Data producer (registration)"]
436             },
437             "put": {
438                 "summary": "Individual Information Type",
439                 "requestBody": {
440                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/producer_info_type_info"}}},
441                     "required": true
442                 },
443                 "operationId": "putInfoType",
444                 "responses": {
445                     "200": {
446                         "description": "Type updated",
447                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
448                     },
449                     "201": {
450                         "description": "Type created",
451                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
452                     },
453                     "400": {
454                         "description": "Input validation failed",
455                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
456                     }
457                 },
458                 "parameters": [{
459                     "schema": {"type": "string"},
460                     "in": "path",
461                     "name": "infoTypeId",
462                     "required": true
463                 }],
464                 "tags": ["Data producer (registration)"]
465             }
466         },
467         "/data-consumer/v1/info-type-subscription/{subscriptionId}": {
468             "get": {
469                 "summary": "Individual subscription for information types (registration/deregistration)",
470                 "operationId": "getIndividualTypeSubscription",
471                 "responses": {
472                     "200": {
473                         "description": "Type subscription",
474                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_type_subscription_info"}}}
475                     },
476                     "404": {
477                         "description": "Subscription is not found",
478                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
479                     }
480                 },
481                 "parameters": [{
482                     "schema": {"type": "string"},
483                     "in": "path",
484                     "name": "subscriptionId",
485                     "required": true
486                 }],
487                 "tags": ["Data consumer"]
488             },
489             "delete": {
490                 "summary": "Individual subscription for information types (registration/deregistration)",
491                 "operationId": "deleteIndividualTypeSubscription",
492                 "responses": {
493                     "200": {
494                         "description": "Not used",
495                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
496                     },
497                     "204": {
498                         "description": "Subscription deleted",
499                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
500                     },
501                     "404": {
502                         "description": "Subscription is not found",
503                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
504                     }
505                 },
506                 "parameters": [{
507                     "schema": {"type": "string"},
508                     "in": "path",
509                     "name": "subscriptionId",
510                     "required": true
511                 }],
512                 "tags": ["Data consumer"]
513             },
514             "put": {
515                 "summary": "Individual subscription for information types (registration/deregistration)",
516                 "requestBody": {
517                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_type_subscription_info"}}},
518                     "required": true
519                 },
520                 "description": "This service operation is used to subscribe to notifications for changes in the availability of data types.",
521                 "operationId": "putIndividualTypeSubscription",
522                 "responses": {
523                     "200": {
524                         "description": "Subscription updated",
525                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
526                     },
527                     "201": {
528                         "description": "Subscription created",
529                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
530                     }
531                 },
532                 "parameters": [{
533                     "schema": {"type": "string"},
534                     "in": "path",
535                     "name": "subscriptionId",
536                     "required": true
537                 }],
538                 "tags": ["Data consumer"]
539             }
540         },
541         "/example_dataproducer/health_check": {"get": {
542             "summary": "Producer supervision",
543             "description": "The endpoint is provided by the Information Producer and is used for supervision of the producer.",
544             "operationId": "producerSupervision",
545             "responses": {"200": {
546                 "description": "The producer is OK",
547                 "content": {"application/json": {"schema": {"type": "string"}}}
548             }},
549             "tags": ["Data producer (callbacks)"]
550         }},
551         "/A1-EI/v1/eitypes": {"get": {
552             "summary": "EI type identifiers",
553             "operationId": "getEiTypeIdentifiers",
554             "responses": {"200": {
555                 "description": "EI type identifiers",
556                 "content": {"application/json": {"schema": {
557                     "type": "array",
558                     "items": {"type": "string"}
559                 }}}
560             }},
561             "tags": ["A1-EI (registration)"]
562         }},
563         "/data-consumer/v1/info-types": {"get": {
564             "summary": "Information type identifiers",
565             "operationId": "getinfoTypeIdentifiers",
566             "responses": {"200": {
567                 "description": "Information type identifiers",
568                 "content": {"application/json": {"schema": {
569                     "type": "array",
570                     "items": {"type": "string"}
571                 }}}
572             }},
573             "tags": ["Data consumer"]
574         }},
575         "/data-producer/v1/info-producers/{infoProducerId}": {
576             "get": {
577                 "summary": "Individual Information Producer",
578                 "operationId": "getInfoProducer",
579                 "responses": {
580                     "200": {
581                         "description": "Information producer",
582                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/producer_registration_info"}}}
583                     },
584                     "404": {
585                         "description": "Information producer is not found",
586                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
587                     }
588                 },
589                 "parameters": [{
590                     "schema": {"type": "string"},
591                     "in": "path",
592                     "name": "infoProducerId",
593                     "required": true
594                 }],
595                 "tags": ["Data producer (registration)"]
596             },
597             "delete": {
598                 "summary": "Individual Information Producer",
599                 "operationId": "deleteInfoProducer",
600                 "responses": {
601                     "200": {
602                         "description": "Not used",
603                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
604                     },
605                     "204": {
606                         "description": "Producer deleted",
607                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
608                     },
609                     "404": {
610                         "description": "Producer is not found",
611                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
612                     }
613                 },
614                 "parameters": [{
615                     "schema": {"type": "string"},
616                     "in": "path",
617                     "name": "infoProducerId",
618                     "required": true
619                 }],
620                 "tags": ["Data producer (registration)"]
621             },
622             "put": {
623                 "summary": "Individual Information Producer",
624                 "requestBody": {
625                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/producer_registration_info"}}},
626                     "required": true
627                 },
628                 "operationId": "putInfoProducer",
629                 "responses": {
630                     "200": {
631                         "description": "Producer updated",
632                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
633                     },
634                     "201": {
635                         "description": "Producer created",
636                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
637                     },
638                     "400": {
639                         "description": "Input validation failed",
640                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
641                     },
642                     "404": {
643                         "description": "Producer type not found",
644                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
645                     }
646                 },
647                 "parameters": [{
648                     "schema": {"type": "string"},
649                     "in": "path",
650                     "name": "infoProducerId",
651                     "required": true
652                 }],
653                 "tags": ["Data producer (registration)"]
654             }
655         },
656         "/status": {"get": {
657             "summary": "Returns status and statistics of this service",
658             "operationId": "getStatus",
659             "responses": {"200": {
660                 "description": "Service is living",
661                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/service_status_info"}}}
662             }},
663             "tags": ["Service status"]
664         }},
665         "/data-consumer/v1/info-type-subscription": {"get": {
666             "summary": "Information type subscription identifiers",
667             "description": "query for information type subscription identifiers",
668             "operationId": "getInfoTypeSubscriptions",
669             "responses": {"200": {
670                 "description": "Information type subscription identifiers",
671                 "content": {"application/json": {"schema": {
672                     "type": "array",
673                     "items": {"type": "string"}
674                 }}}
675             }},
676             "parameters": [{
677                 "schema": {"type": "string"},
678                 "in": "query",
679                 "name": "owner",
680                 "description": "selects result for one owner",
681                 "required": false
682             }],
683             "tags": ["Data consumer"]
684         }},
685         "/A1-EI/v1/eijobs/{eiJobId}": {
686             "get": {
687                 "summary": "Individual EI job",
688                 "operationId": "getIndividualEiJob_1",
689                 "responses": {
690                     "200": {
691                         "description": "EI job",
692                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EiJobObject"}}}
693                     },
694                     "404": {
695                         "description": "Enrichment Information job is not found",
696                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
697                     }
698                 },
699                 "parameters": [{
700                     "schema": {"type": "string"},
701                     "in": "path",
702                     "name": "eiJobId",
703                     "required": true
704                 }],
705                 "tags": ["A1-EI (registration)"]
706             },
707             "delete": {
708                 "summary": "Individual EI job",
709                 "operationId": "deleteIndividualEiJob_1",
710                 "responses": {
711                     "200": {
712                         "description": "Not used",
713                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
714                     },
715                     "204": {
716                         "description": "Job deleted",
717                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
718                     },
719                     "404": {
720                         "description": "Enrichment Information job is not found",
721                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
722                     }
723                 },
724                 "parameters": [{
725                     "schema": {"type": "string"},
726                     "in": "path",
727                     "name": "eiJobId",
728                     "required": true
729                 }],
730                 "tags": ["A1-EI (registration)"]
731             },
732             "put": {
733                 "summary": "Individual EI job",
734                 "requestBody": {
735                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EiJobObject"}}},
736                     "required": true
737                 },
738                 "operationId": "putIndividualEiJob",
739                 "responses": {
740                     "200": {
741                         "description": "Job updated",
742                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
743                     },
744                     "201": {
745                         "description": "Job created",
746                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
747                     },
748                     "400": {
749                         "description": "Input validation failed",
750                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
751                     },
752                     "404": {
753                         "description": "Enrichment Information type is not found",
754                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
755                     },
756                     "409": {
757                         "description": "Cannot modify job type",
758                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
759                     }
760                 },
761                 "parameters": [{
762                     "schema": {"type": "string"},
763                     "in": "path",
764                     "name": "eiJobId",
765                     "required": true
766                 }],
767                 "tags": ["A1-EI (registration)"]
768             }
769         },
770         "/data-consumer/v1/info-jobs": {"get": {
771             "summary": "Information Job identifiers",
772             "description": "query for information job identifiers",
773             "operationId": "getJobIds",
774             "responses": {
775                 "200": {
776                     "description": "Information information job identifiers",
777                     "content": {"application/json": {"schema": {
778                         "type": "array",
779                         "items": {"type": "string"}
780                     }}}
781                 },
782                 "404": {
783                     "description": "Information type is not found",
784                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
785                 }
786             },
787             "parameters": [
788                 {
789                     "schema": {"type": "string"},
790                     "in": "query",
791                     "name": "infoTypeId",
792                     "description": "selects subscription jobs of matching information type",
793                     "required": false
794                 },
795                 {
796                     "schema": {"type": "string"},
797                     "in": "query",
798                     "name": "owner",
799                     "description": "selects result for one owner",
800                     "required": false
801                 }
802             ],
803             "tags": ["Data consumer"]
804         }},
805         "/data-consumer/v1/info-jobs/{infoJobId}": {
806             "get": {
807                 "summary": "Individual data subscription job",
808                 "operationId": "getIndividualEiJob",
809                 "responses": {
810                     "200": {
811                         "description": "Information subscription job",
812                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_job"}}}
813                     },
814                     "404": {
815                         "description": "Information subscription job is not found",
816                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
817                     }
818                 },
819                 "parameters": [{
820                     "schema": {"type": "string"},
821                     "in": "path",
822                     "name": "infoJobId",
823                     "required": true
824                 }],
825                 "tags": ["Data consumer"]
826             },
827             "delete": {
828                 "summary": "Individual data subscription job",
829                 "operationId": "deleteIndividualEiJob",
830                 "responses": {
831                     "200": {
832                         "description": "Not used",
833                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
834                     },
835                     "204": {
836                         "description": "Job deleted",
837                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
838                     },
839                     "404": {
840                         "description": "Information subscription job is not found",
841                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
842                     }
843                 },
844                 "parameters": [{
845                     "schema": {"type": "string"},
846                     "in": "path",
847                     "name": "infoJobId",
848                     "required": true
849                 }],
850                 "tags": ["Data consumer"]
851             },
852             "put": {
853                 "summary": "Individual data subscription job",
854                 "requestBody": {
855                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_job"}}},
856                     "required": true
857                 },
858                 "description": "The job will be enabled when a producer is available",
859                 "operationId": "putIndividualInfoJob",
860                 "responses": {
861                     "200": {
862                         "description": "Job updated",
863                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
864                     },
865                     "201": {
866                         "description": "Job created",
867                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
868                     },
869                     "400": {
870                         "description": "Input validation failed",
871                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
872                     },
873                     "404": {
874                         "description": "Information type is not found",
875                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
876                     },
877                     "409": {
878                         "description": "Cannot modify job type",
879                         "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
880                     }
881                 },
882                 "parameters": [
883                     {
884                         "schema": {"type": "string"},
885                         "in": "path",
886                         "name": "infoJobId",
887                         "required": true
888                     },
889                     {
890                         "schema": {
891                             "default": false,
892                             "type": "boolean"
893                         },
894                         "in": "query",
895                         "name": "typeCheck",
896                         "description": "when true, a validation of that the type exists and that the job matches the type schema.",
897                         "required": false
898                     }
899                 ],
900                 "tags": ["Data consumer"]
901             }
902         },
903         "/data-producer/v1/info-producers": {"get": {
904             "summary": "Information producer identifiers",
905             "operationId": "getInfoProducerIdentifiers",
906             "responses": {"200": {
907                 "description": "Information producer identifiers",
908                 "content": {"application/json": {"schema": {
909                     "type": "array",
910                     "items": {"type": "string"}
911                 }}}
912             }},
913             "parameters": [{
914                 "schema": {"type": "string"},
915                 "in": "query",
916                 "name": "info_type_id",
917                 "description": "If given, only the producers for the EI Data type is returned.",
918                 "required": false
919             }],
920             "tags": ["Data producer (registration)"]
921         }},
922         "/data-consumer/v1/info-types/{infoTypeId}": {"get": {
923             "summary": "Individual information type",
924             "operationId": "getInfoType_1",
925             "responses": {
926                 "200": {
927                     "description": "Information type",
928                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_information_type"}}}
929                 },
930                 "404": {
931                     "description": "Information type is not found",
932                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
933                 }
934             },
935             "parameters": [{
936                 "schema": {"type": "string"},
937                 "in": "path",
938                 "name": "infoTypeId",
939                 "required": true
940             }],
941             "tags": ["Data consumer"]
942         }},
943         "/example_dataconsumer/info_jobs/{infoJobId}/status": {"post": {
944             "summary": "Callback for changed Information Job status",
945             "requestBody": {
946                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EiJobStatusObject"}}},
947                 "required": true
948             },
949             "description": "The primitive is implemented by the data consumer and is invoked when a Information Job status has been changed.",
950             "operationId": "jobStatusCallback",
951             "responses": {"200": {
952                 "description": "OK",
953                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
954             }},
955             "parameters": [{
956                 "schema": {"type": "string"},
957                 "in": "path",
958                 "name": "infoJobId",
959                 "required": true
960             }],
961             "tags": ["A1-EI (callbacks)"]
962         }},
963         "/A1-EI/v1/eijobs": {"get": {
964             "summary": "EI job identifiers",
965             "description": "query for EI job identifiers",
966             "operationId": "getEiJobIds",
967             "responses": {
968                 "200": {
969                     "description": "EI job identifiers",
970                     "content": {"application/json": {"schema": {
971                         "type": "array",
972                         "items": {"type": "string"}
973                     }}}
974                 },
975                 "404": {
976                     "description": "Enrichment Information type is not found",
977                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
978                 }
979             },
980             "parameters": [
981                 {
982                     "schema": {"type": "string"},
983                     "in": "query",
984                     "name": "eiTypeId",
985                     "description": "selects EI jobs of matching EI type",
986                     "required": false
987                 },
988                 {
989                     "schema": {"type": "string"},
990                     "in": "query",
991                     "name": "owner",
992                     "description": "selects EI jobs for one EI job owner",
993                     "required": false
994                 }
995             ],
996             "tags": ["A1-EI (registration)"]
997         }},
998         "/A1-EI/v1/eijobs/{eiJobId}/status": {"get": {
999             "summary": "EI job status",
1000             "operationId": "getEiJobStatus_1",
1001             "responses": {
1002                 "200": {
1003                     "description": "EI job status",
1004                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/EiJobStatusObject"}}}
1005                 },
1006                 "404": {
1007                     "description": "Enrichment Information job is not found",
1008                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
1009                 }
1010             },
1011             "parameters": [{
1012                 "schema": {"type": "string"},
1013                 "in": "path",
1014                 "name": "eiJobId",
1015                 "required": true
1016             }],
1017             "tags": ["A1-EI (registration)"]
1018         }},
1019         "/data-producer/v1/info-producers/{infoProducerId}/status": {"get": {
1020             "summary": "Information producer status",
1021             "operationId": "getInfoProducerStatus",
1022             "responses": {
1023                 "200": {
1024                     "description": "Information producer status",
1025                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/producer_status"}}}
1026                 },
1027                 "404": {
1028                     "description": "Information producer is not found",
1029                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
1030                 }
1031             },
1032             "parameters": [{
1033                 "schema": {"type": "string"},
1034                 "in": "path",
1035                 "name": "infoProducerId",
1036                 "required": true
1037             }],
1038             "tags": ["Data producer (registration)"]
1039         }},
1040         "/data-producer/v1/info-producers/{infoProducerId}/info-jobs": {"get": {
1041             "summary": "Information Job definitions",
1042             "description": "Information Job definitions for one Information Producer",
1043             "operationId": "getInfoProducerJobs",
1044             "responses": {
1045                 "200": {
1046                     "description": "Information producer",
1047                     "content": {"application/json": {"schema": {
1048                         "type": "array",
1049                         "items": {"$ref": "#/components/schemas/producer_info_job_request"}
1050                     }}}
1051                 },
1052                 "404": {
1053                     "description": "Information producer is not found",
1054                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
1055                 }
1056             },
1057             "parameters": [{
1058                 "schema": {"type": "string"},
1059                 "in": "path",
1060                 "name": "infoProducerId",
1061                 "required": true
1062             }],
1063             "tags": ["Data producer (registration)"]
1064         }},
1065         "/data-consumer/v1/info-jobs/{infoJobId}/status": {"get": {
1066             "summary": "Job status",
1067             "operationId": "getEiJobStatus",
1068             "responses": {
1069                 "200": {
1070                     "description": "Information subscription job status",
1071                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_job_status"}}}
1072                 },
1073                 "404": {
1074                     "description": "Information subscription job is not found",
1075                     "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetails"}}}
1076                 }
1077             },
1078             "parameters": [{
1079                 "schema": {"type": "string"},
1080                 "in": "path",
1081                 "name": "infoJobId",
1082                 "required": true
1083             }],
1084             "tags": ["Data consumer"]
1085         }},
1086         "/example_dataconsumer/info_type_status": {"post": {
1087             "summary": "Callback for changed Information type registration status",
1088             "requestBody": {
1089                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/consumer_type_registration_info"}}},
1090                 "required": true
1091             },
1092             "description": "The primitive is implemented by the data consumer and is invoked when a Information type status has been changed. <br/>Subscription are managed by primitives in 'Data consumer'",
1093             "operationId": "typeStatusCallback",
1094             "responses": {"200": {
1095                 "description": "OK",
1096                 "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Void"}}}
1097             }},
1098             "tags": ["Data consumer (callbacks)"]
1099         }}
1100     },
1101     "info": {
1102         "license": {
1103             "name": "Copyright (C) 2020 Nordix Foundation. Licensed under the Apache License.",
1104             "url": "http://www.apache.org/licenses/LICENSE-2.0"
1105         },
1106         "description": "<h1>API documentation<\/h1><h2>General<\/h2><p>  The service is mainly a broker between data producers and data consumers. A data producer has the ability to produce one or several types of data (Information Type). One type of data can be produced by zero to many producers. <br /><br />A data consumer can have several active data subscriptions (Information Job). One Information Job consists of the type of data to produce and additional parameters for filtering of the data. These parameters are different for different data types.<\/p><h2>APIs provided by the service<\/h2><h4>A1-EI<\/h4><p>  This API is between Near-RT RIC and the Non-RT RIC.  The Near-RT RIC is a data consumer, which creates Information Jobs to subscribe for data.  In this context, the information is referred to as 'Enrichment Information', EI.<\/p><h4>Data producer API<\/h4><p>  This API is provided by the Non-RT RIC platform and is intended to be part of the O-RAN R1 interface.  The API is for use by different kinds of data producers and provides support for:<ul><li>Registry of supported information types and which parameters needed to setup a subscription.<\/li><li>Registry of existing data producers.<\/li><li>Callback API provided by producers to setup subscriptions.<\/li><\/ul><\/p><h4>Data consumer API<\/h4><p>  This API is provided by the Non-RT RIC platform and is intended to be part of the O-RAN R1 interface.  The API is for use by different kinds of data consumers and provides support for:<ul><li>Querying of available types of data to consume.<\/li><li>Management of data subscription jobs<\/li><li>Optional callback API provided by consumers to get notification on added and removed information types.<\/li><\/ul><\/p><h4>Service status<\/h4><p>  This API provides a means to monitor the health of this service.<\/p>",
1107         "title": "Data management and exposure",
1108         "version": "1.0"
1109     },
1110     "tags": [
1111         {
1112             "name": "A1-EI (registration)",
1113             "description": "Data consumer EI job registration"
1114         },
1115         {
1116             "name": "A1-EI (callbacks)",
1117             "description": "Data consumer EI job status callbacks"
1118         },
1119         {
1120             "name": "Data producer (callbacks)",
1121             "description": "API implemented by data producers"
1122         },
1123         {
1124             "name": "Data producer (registration)",
1125             "description": "API for data producers"
1126         },
1127         {
1128             "name": "Service status",
1129             "description": "API for monitoring of the service"
1130         },
1131         {
1132             "name": "Data consumer",
1133             "description": "API for data consumers"
1134         }
1135     ]
1136 }