Link to issue:
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
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 & content before update hierarchy api is invoked.
Flow to validate and link content through csv file:
- read textbook data by id (/content/v3/hierarchy)
- validate the dial codes provided in csv file with textbook data.
- get the framework Id from textbook data and get framework data (/framework/v3/read)
- validate the topics provided in csv file with the framework data.
- validate the content ids provided in csv file (/composite/v3/search)
- once validation done, create the request and update the hierarchy (/content/v3/hierarchy/update)
- once hierarchy got updated call dial code link api (/content/v3/dialcode/link) to link the dial code.