Search Content

POST {{baseUrl}}/content/v1/search

This API is associated with Searching Object created as part of sourcing object creation on the Sunbird Platform. - The endpoint for Content Search is /content/v1/search - It points to knowledge-mw-service - /v1/search - It is mandatory to provide values for parameters marked with *. - Mandatory fields cannot be null or empty.

Request Body

{"request"=>{"filters"=>{"objectType"=>"Content"}, "limit"=>1}}

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.search","ver":"1.0","ts":"2020-12-22T06:24:45.025Z","params":{"resmsgid":"62160510-441e-11eb-9b0c-abcfbdf41bc3","msgid":"620ae180-441e-11eb-9b0c-abcfbdf41bc3","status":"successful","err":null,"errmsg":null},"responseCode":"OK","result":{"count":480465,"content":[{"code":"org.ekstep.jun16.story.test05","subject":["literacy"],"flags":["Test case"],"channel":"in.ekstep","downloadUrl":"https://ekstep-public-dev.s3-ap-south-1.amazonaws.com/ecar_files/org.ekstep.jun16.story.test05/vrgaatiil-upkrmclassroom-activities_1498725323304_org.ekstep.jun16.story.test05_1.0.ecar","description":"शेर का साथी हाथी","lastFlaggedOn":"2017-12-27T13:30:48.942+0000","language":["English"],"variants":{"spine":{"ecarUrl":"https://ekstep-public-dev.s3-ap-south-1.amazonaws.com/ecar_files/org.ekstep.jun16.story.test05/vrgaatiil-upkrmclassroom-activities_1498725324677_org.ekstep.jun16.story.test05_1.0_spine.ecar","size":851}},"mimeType":"application/vnd.ekstep.ecml-archive","flaggedBy":["Test case"],"idealScreenSize":"normal","createdOn":"2017-06-29T07:44:15.875+0000","objectType":"Content","collections":["do_11228062262625075214"],"appId":"ekstep_portal","contentDisposition":"inline","contentEncoding":"gzip","artifactUrl":"https://ekstep-public-dev.s3-ap-south-1.amazonaws.com/content/org.ekstep.jun16.story.test05/artifact/1485166711340_do_30102464_1498725273215.zip","lastUpdatedOn":"2017-12-27T13:30:48.968+0000","SYS_INTERNAL_LAST_UPDATED_ON":"2018-01-09T18:41:32.368+0000","primaryCategory":"Story","owner":"EkStep","lastUpdatedBy":"Test case","identifier":"org.ekstep.jun16.story.test05","audience":["Learner"],"flagReasons":["Copyright Violation"],"visibility":"default","os":["All"],"consumerId":"72e54829-6402-4cf0-888e-9b30733c1b88","mediaType":"content","osId":"org.ekstep.quiz.app","graph_id":"domain","nodeType":"DATA_NODE","pkgVersion":1,"versionKey":"1515523292368","prevState":"Draft","idealScreenDensity":"hdpi","dialcodes":["DAKDF","FSDFDSA"],"s3Key":"ecar_files/org.ekstep.jun16.story.test05/vrgaatiil-upkrmclassroom-activities_1498725323304_org.ekstep.jun16.story.test05_1.0.ecar","size":9983654,"lastPublishedOn":"2017-06-29T08:35:23.302+0000","compatibilityLevel":1,"name":"\tवर्गातील उपक्रम(Classroom Activities)","resourceType":"Story","status":"Flagged","node_id":105761}]}}