Read Content

GET {{baseUrl}}/content/v2/read/{{contentId}}

This API is associated with viewing and reading out the content on the Sunbird Platform . - The /read/{contentId} endpoint executes request for fetching the contents to be viewed and read. - The endpoint for Read Content is /content/v2/read - It points to knowledge-mw-service - /v2/content/read - {...}refers to a section of reject endpoint URL path that needs to be replaced by appropriate Id. - You need to provide a valid content Id value in {Content Id} field of API URL. - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

HEADERS

KeyDatatypeRequiredDescription
Content-TypestringThe Content Type entity is the media type of the resource.Possible media types can be:-
  • Application/json | | Accept | string | | |

RESPONSES

status: OK

{"id":"api.content.read","ver":"1.0","ts":"2020-12-10T20:38:32.510Z","params":{"resmsgid":"ab16e5e0-3b27-11eb-b0a2-8d5c9f561887","msgid":"ab131550-3b27-11eb-b0a2-8d5c9f561887","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"content":{"ownershipType":["createdBy"],"code":"org.sunbird.EHdZir","credentials":{"enabled":"No"},"channel":"channel-1","language":["English"],"mimeType":"application/vnd.ekstep.h5p-archive","idealScreenSize":"normal","createdOn":"2020-12-10T20:38:13.315+0000","objectType":"Content","primaryCategory":"Learning Resource","contentDisposition":"inline","lastUpdatedOn":"2020-12-10T20:38:13.315+0000","contentEncoding":"gzip","dialcodeRequired":"No","trackable":{"enabled":"No","autoBatch":"No"},"identifier":"do_21316972702362828813477","lastStatusChangedOn":"2020-12-10T20:38:13.315+0000","audience":["Student"],"os":["All"],"visibility":"Default","consumerId":"2eaff3db-cdd1-42e5-a611-bebbf906e6cf","mediaType":"content","osId":"org.ekstep.quiz.app","languageCode":["en"],"version":2,"versionKey":"1607632693315","license":"CC BY 4.0","idealScreenDensity":"hdpi","framework":"NCF","createdBy":"874ed8a5-782e-4f6c-8f36-e0288455901e","compatibilityLevel":1,"name":"Test_h5p","status":"Draft"}}}