Read Question
This API is used to read the question on the Sunbird-inQuiry Platform.
This API is used to read the question on the Sunbird-inQuiry Platform.
GET
/question/v1/read/{Question_Id}
• It points to inquiry-api-service (assessment service) - /question/v4/read
• You need to provide a valid Question Id value in {Question_Id} field of the API URL.
• It is mandatory to provide values for parameters marked with *.
• Mandatory fields cannot be null or empty.
Path Parameters
Name | Type | Description |
---|---|---|
Question_Id* | String | Append a valid Question ID To the Request URL |
Query Parameters
Name | Type | Description |
---|---|---|
mode=edit | String | To fetch the latest version of node from the database for edit purpose |
fields=comma separated metadata names | String | To fetch the specific fields, this query parameter can be used eg. fields=name,body,answer... |
Headers
Name | Type | Description |
---|---|---|
Content-Type | String | The Content-Type entity is the media type of the resource. It should be Application/json |
Authorization* | String | To make use of the API, you require authorization. Raise a request to the administrator, for the use of the API. You will receive the authorization key. Specify the key received, here. Set Bearer {{api_key}} |
x-channel-id | String | Unique identification number associated with a root organization. |
Success Result Schema
Attribute | Type | Description |
---|---|---|
identifier | string | Unique Question Identifier |
name | string | Question name |
versionKey | string | Question versionKey |
code | string | Unique Question code |
lastStatusChangedOn | string | Last status changed time |
visibility | string | Question visibility eg. parent |
mimeType | string | Question mimeType eg. application/vnd.sunbird.question |
createdOn | string | Question createdOn Time |
objectType | string | Question objectType |
primaryCategory | string | Type of question (Multiple Choice Question or Subjective Question) |
lastUpdatedOn | string | Question lastUpdatedOn |
status | string | Question status Draft/Review/Live |
cURL
sample curl to read the metadata
Sample curl to read specific metadata
Last updated