GET
/
evaluation-platform
/
constants
curl --request GET \
  --url https://api-staging.crazygoldfish.com/evaluation-platform/constants/ \
  --header 'Authorization: Bearer <token>'
{
  "subjects": {
    "1": "Science",
    "2": "Math",
    "3": "English",
    "4": "Hindi"
  },
  "grade": {
    "1": "First",
    "2": "Second",
    "3": "Third",
    "4": "Fourth",
    "5": "Fifth",
    "6": "Sixth",
    "7": "Seventh",
    "8": "Eighth",
    "9": "Ninth",
    "10": "Tenth",
    "11": "Eleventh",
    "12": "Twelfth"
  },
  "examType": {
    "1": "Pre Boards"
  },
  "fileType": {
    "1": "pdf",
    "2": "docx",
    "3": "jpeg"
  },
  "fileStatus": {
    "0": "Open",
    "1": "In Progress",
    "2": "Completed",
    "3": "Failed"
  },
  "queryTypes": {
    "1": "Classification",
    "2": "Re-evaluation Request",
    "3": "Other Concerns"
  },
  "queryStatus": {
    "1": "Submitted",
    "2": "In Review",
    "3": "Resolved"
  },
  "publishTypeEntity": [
    "pre-publish",
    "final-publish"
  ],
  "updateEntityType": [
    {
      "type": "question",
      "fields": [
        "text",
        "marks",
        "isApproved"
      ]
    },
    {
      "type": "parentQuestion",
      "fields": [
        "text",
        "marks",
        "isApproved"
      ]
    },
    {
      "type": "modelAnswer",
      "fields": [
        "text",
        "stepMarking",
        "isApproved"
      ]
    },
    {
      "type": "answer",
      "fields": [
        "text",
        "marks",
        "isApproved",
        "updateReason"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200
application/json
Successful response with metadata.
subjects
object

Represents subject IDs mapped to subject names. Used for categorizing exams and answer sheets. Example: 1: Science

Example:
{
  "1": "Science",
  "2": "Math",
  "3": "English",
  "4": "Hindi"
}
grade
object

Maps class IDs to their respective class names. Useful for organizing exams by grade level. Example: 10: Tenth

Example:
{
  "1": "First",
  "2": "Second",
  "3": "Third",
  "4": "Fourth",
  "5": "Fifth",
  "6": "Sixth",
  "7": "Seventh",
  "8": "Eighth",
  "9": "Ninth",
  "10": "Tenth",
  "11": "Eleventh",
  "12": "Twelfth"
}
examType
object

Maps exam type IDs to descriptions. Example: 1: Pre Boards

Example:
{ "1": "Pre Boards" }
fileType
object

Represents the format of uploaded files. Example: 1: pdf, 2: docx, 3: jpeg

Example:
{ "1": "pdf", "2": "docx", "3": "jpeg" }
fileStatus
object

Indicates the status of a file being processed. Example: 0: Open, 2: Completed

Example:
{
  "0": "Open",
  "1": "In Progress",
  "2": "Completed",
  "3": "Failed"
}
queryTypes
object

Maps query types to their descriptions. Useful for managing user queries. Example: 1: Classification

Example:
{
  "1": "Classification",
  "2": "Re-evaluation Request",
  "3": "Other Concerns"
}
queryStatus
object

Indicates the progress of a query.. Example: 1: Submitted, 3: Resolved

Example:
{
  "1": "Submitted",
  "2": "In Review",
  "3": "Resolved"
}
publishTypeEntity
string[]

Represents possible states for publishing results. Values: [pre-publish, final-publish]

Example:
["pre-publish", "final-publish"]
updateEntityType
object[]
Example:
[
  {
    "type": "question",
    "fields": ["text", "marks", "isApproved"]
  },
  {
    "type": "parentQuestion",
    "fields": ["text", "marks", "isApproved"]
  },
  {
    "type": "modelAnswer",
    "fields": ["text", "stepMarking", "isApproved"]
  },
  {
    "type": "answer",
    "fields": [
      "text",
      "marks",
      "isApproved",
      "updateReason"
    ]
  }
]