Generic APIs
GET - Constants
The API provides a centralized repository of predefined constants for the evaluation platform. These constants ensure data consistency across APIs by standardizing values such as userType, status, file types. This API is primarily used to fetch reference data for UI dropdowns, data validation, and workflow configurations.
Scenario: Validating File Upload and Status Management:
- Validating File Types and Status:
- A teacher uploads a file as part of the result evaluation process. The system uses predefined file types (e.g., “pdf,” “jpeg”) and file statuses (e.g., “Open,” “In Progress,” “Completed”) from the Constants API.
- Outcome:
- This ensures only valid file formats are uploaded and tracks the status of the file throughout the workflow.
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200
application/json
Metadata dictionaries fetched successfully.
Mapping of user types by ID
Example:
{
"1": "Admin",
"2": "Teacher",
"3": "Student",
"4": "Parent"
}
Mapping of assignment status codes
Example:
{
"0": "Open",
"1": "In Progress",
"2": "Completed",
"3": "Failed"
}
Mapping of document type identifiers
Example:
{ "1": "pdf", "2": "jpeg" }