Read QuestionSet

This API is used to read an existing question set on the Sunbird-inQuiry Platform.

This API is used to read an existing question set on the Sunbird-inQuiry Platform.

GET /read/{QuestionSet_Id}

• The /questionset/v1/read/{QuestionSet_Id} endpoint executes a request for fetching the question to read. • This API returns only the metadata of the question set not the hierarchical structure. To read hierarchical structure please use read questionset hierarchy API • The endpoint for reading QuestionSet is /questionset/v1/read • It points to inquiry-api-service (assessment service) - /questionset/v4/read • You need to provide a valid QuestionSet Id value in {QuestionSet_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

NameTypeDescription

QuestionSet_Id*

String

Append a valid Question Set Id To the Request URL

Query Parameters

NameTypeDescription

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,description,outcomDeclaration...

Headers

NameTypeDescription

Content-Type

String

The Content-Type entity is the media type of the resource. Possible media types can 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.

{
  "id": "api.questionset.read",
  "ver": "3.0",
  "ts": "2021-02-03T09:23:51ZZ",
  "params": {
    "resmsgid": "e9e05900-793b-4231-af75-ffa1a7a0b4c6",
    "msgid": null,
    "err": null,
    "status": "successful",
    "errmsg": null
  },
  "responseCode": "OK",
  "result": {
    "questionset": {
      "code": "finemanfine",
      "allowSkip": "Yes",
      "containsUserData": "No",
      "description": "hey",
      "language": [
        "English"
      ],
      "mimeType": "application/vnd.sunbird.questionset",
      "showHints": "No",
      "createdOn": "2021-02-03T09:23:34.060+0000",
      "objectType": "QuestionSet",
      "primaryCategory": "Practice Question Set",
      "contentDisposition": "inline",
      "lastUpdatedOn": "2021-02-03T09:23:34.060+0000",
      "contentEncoding": "gzip",
      "showSolutions": "Yes",
      "allowAnonymousAccess": "Yes",
      "identifier": "do_113208323801554944120",
      "lastStatusChangedOn": "2021-02-03T09:23:34.060+0000",
      "requiresSubmit": "Yes",
      "visibility": "Default",
      "showTimer": "No",
      "summaryType": "Complete",
      "consumerId": "fa13b438-8a3d-41b1-8278-33b0c50210e4",
      "setType": "materialised",
      "languageCode": [
        "en"
      ],
      "version": 1,
      "versionKey": "1612344214060",
      "showFeedback": "Yes",
      "license": "CC BY 4.0",
      "compatibilityLevel": 4,
      "name": "Test Question Set",
      "navigationMode": "linear",
      "shuffle": "Yes",
      "status": "Draft"
    }
  }
}

Success response schema

AttributeTypeDescription

identifier

String

Unique Question set Identifier

name

String

Name of the Question set

versionKey

String

Unique version key of Question set

code

String

Unique Code for Question set

lastStatusChangedOn

String

Last status changed time

visibility

String

Question set Visibility eg. parent or default

mimeType

String

Question mimeType eg. application/vnd.sunbird.questionset

createdOn

String

Time of question set creation

objectType

String

QuestionSet objectType

primaryCategory

String

Eg - Practice Question set or Exam Question set

status

String

Question status Draft/Review/Live

lastUpdatedOn

String

Last updated time

cURL

Sample CURL to read all metadata

curl --location -g --request GET '{{host}}/questionset/v1/read/{{questionSet_id}}' \
--header 'Authorization: Bearer {{api_key}}'

Sample CURL to read all metadata

curl --location -g --request GET '{{host}}/questionset/v1/read/{{questionSet_id}}?fields=name,description' \
--header 'Authorization: Bearer {{api_key}}'

Last updated