Versions Compared

Key

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

Link to issue:
Jira Legacy
serverSystem JIRA
serverId2207a759-5bc8-39c5-9cd2-aa9ccc1f65dd
keySB-9805


Problem Statement

As ETB content is done through CSV upload, there are chances of issue in the input data. So before processing the data it is desirable to validate the data before starting the linking process.

Here is the flow which validates the topics & dialcodes before linking api is invoked.


Flow to validate and link content through csv file:

  1. read textbook data by id (/content/v3/hierarchy)
  2. validate the dial codes provided in csv file with textbook data.
  3. get the framework Id from textbook data and get framework data (/framework/v3/read)
  4. validate the topics provided in csv file with the framework data.
  5. validate the content ids provided in csv file (/composite/v3/search)
  6. once validation done, create the request and update the hierarchy (/content/v3/hierarchy/update)
  7. once hierarchy got updated call dial code link api (/content/v3/dialcode/link) to link the dial code.