> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazygoldfish.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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 status and 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:**

1. **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. 



## OpenAPI

````yaml GET /assignment-evaluation/v1/assignment/constant/
openapi: 3.0.1
info:
  title: Evaluation Report API
  description: An API for retrieving evaluation reports.
  version: 1.0.0
servers:
  - url: https://api-staging.crazygoldfish.com
    description: SandBox endpoint
  - url: https://api.crazygoldfish.com
    description: Prod End Point
security: []
paths:
  /assignment-evaluation/v1/assignment/constant/:
    get:
      responses:
        '200':
          description: Metadata dictionaries fetched successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: object
                    description: Mapping of assignment status codes
                    additionalProperties:
                      type: string
                    example:
                      '0': Open
                      '1': In Progress
                      '2': Completed
                      '3': Failed
                  fileType:
                    type: object
                    description: Mapping of document type identifiers
                    additionalProperties:
                      type: string
                    example:
                      '1': pdf
                      '2': jpeg
        '403':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Response'
      security:
        - bearerAuth: []
components:
  schemas:
    403Response:
      type: object
      properties:
        detail:
          type: string
          example: Token has expired
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````