Versions Compared

Key

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

...

The ingestion of the data can be done using the apis. To run the apis, please use postman as a tool. If postman tool already exists, skip the setting up program section or else install the postman by following steps

Setting up Postman

  • Download the postman applicationand import the collection.

  • Select the import option in the postman to import the collection. Please refer to the below screenshot.

...

API Endpoint: <domain_name>/ingestion/v4-data-emission

HTTP Method: GET

...

Step 2: Click on the send button for the request and if the request is successful the user should see a response message as “FIles uploaded successfully”. The files will be uploaded to the input emission folder created in the respective cloud storage.

...

National Programs API

This API accepts the event data in the zip file format and adds it to the emission folder in the respective cloud storage.

...

API Endpoint: <domain_name>/ingestion/national_programs

HTTP Method: POST

...

Step 2: Build the request body with reference to YAML file. The request body for the above api is attached in Link for yaml: https://github.com/Sunbird-cQube/spec-ms/blob/dev/spec.yaml . Provide the valid input details for the Parameters shown below.

...

Step 3: Click on the send button for the request and if the request is successful the user should see a response message as “FIle uploaded successfully”. The files will be uploaded to the emission folder created in the respective cloud storage.

The zip file will be extracted and will be read by the adaptors and then moved into the input folders.

...