Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DRAFT - Work In Progress

This page describes how to demonstrate the entire flow for Non-Realtime RIC using release D.

...

End to end call from Enrichment Coordinator Service


Image RemovedImage Added


From the Control Panel, Producer and Jobs can only be listed. 

The enrichment coordinator service is not exposed outside the k8s cluster, hence the commands for populating enrichment data need to be run from within the cluster.

In order to execute other actions such as create, modify and delete, curl can be use to interact with Enrichment Information API using NodePort from control panel.

In this example, test data is been used, so there is no real producer connected.

Type

Create

...

Type

Code Block
languagebash
themeMidnight
curl -X 'PUT' \
  'http://localhost:30091/data-producer/v1/info-types/type2' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "info_job_data_schema": {
    "$schema":"http://json-schema.org/draft-07/schema#",
    "title":"STD_Type1_1.0.0",
    "description":"EI-Type 1",
    "type":"object"
  }
}'

...

Response:

  • 200 Type updated
  • 201 Type created

Delete

...

Type

Code Block
languagebash
themeMidnight
curl -X 'DELETE' \
  'http://localhost:30091/data-producer/v1/info-types/type2' \
  -H 'accept: application/json'

...

  • 204 Type deleted
  • 404 Type not found

Producers

Create

...

Producer

Code Block
languagebash
themeMidnight
curl -X 'PUT' \
  'http://localhost:30091/data-producer/v1/info-producers/2' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "info_producer_supervision_callback_url": "https://producer-stub:8093/callbacks/supervision/prod-a",
  "supported_info_types": [
    "type2"
  ],
  "info_job_callback_url": "https://producer-stub:8093/callbacks/job/prod-a"
}'

...

  • 200 Producer updated
  • 201 Producer created

Delete Producer

Code Block
languagebash
themeMidnight
curl -X 'DELETE' \
'http://localhost:30091/data-producer/v1/info-producers/2' \
-H 'accept: application/json'

...

  • 204 Producer deleted
  • 404 Producer not found

Jobs

Create

...

Job

Code Block
languagebash
themeMidnight
curl -X 'PUT' \
  'http://localhost:30091/data-consumer/v1/info-jobs/2?typeCheck=false' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "info_type_id": "type2",
  "job_result_uri": "https://ricsim_g3_1:8185/datadelivery",
  "job_owner": "ricsim_g3_1",
  "job_definition": {},
  "status_notification_uri": "http://producer:80/"
}'

...

  • 200 Job updated
  • 201 Job created

Delete Job

Code Block
languagebash
themeMidnight
curl -X 'DELETE' \
  'http://localhost:30091/data-consumer/v1/info-jobs/1' \
  -H 'accept: application/json'

...