> ## 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 - Model Answer

>  The retrieves details about the model answer sheet for a specific exam, including its metadata and associated documents. These documents can either be: 
 - A single PDF file, or  
 - Multiple images (JPEG), each with a specific sequence. 

 This API is useful for viewing, downloading, or validating model answer sheet documents. 

**Scenarios:**

1. **Viewing Model Answer Sheet Details:**
   - A teacher uses this API to review the details of the model answer sheet.
   - **Outcome:**
     - Retrieves a list of associated documents (PDF or sequential JPEGs).
     - Provides a clear overview of the uploaded model answer sheet, including its structure and status.

2. **Validating Uploaded Documents:**
   - A content moderator verifies whether the uploaded model answer sheet documents are complete and in the correct format.
   - **Outcome:**
     - Provides file type (PDF or JPEG).
     - Displays file names and sequences for JPEGs.


<div
  style={{
background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
borderRadius: '16px',
padding: '4px',
marginTop: '20px',
marginBottom: '20px',
boxShadow: '0 10px 40px rgba(102, 126, 234, 0.3)'
}}
>
  <iframe className="w-full aspect-video rounded-xl" src="https://www.youtube.com/embed/Q2293lX-cFk" title="Evaluation Platform | GET | Model Answer | API Reference Guide" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />
</div>


## OpenAPI

````yaml GET /evaluation-platform/v1/exam/{examId}/model-answer/
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:
  /evaluation-platform/v1/exam/{examId}/model-answer/:
    get:
      summary: Retrieve model answer for an exam
      operationId: retrieve_model_answer
      parameters:
        - name: examId
          in: path
          required: true
          schema:
            type: string
            example: 4340132f-50fa-4877-9ffa-e9b7ee59d51f
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Unique identifier of the model answer
                    example: 287117d6-0135-4329-b5a7-d46e42948a14
                  documents:
                    type: array
                    description: List of documents associated with the model answer
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: Unique identifier of the document
                          example: 10d5661d-df3a-4d22-aa58-fddfa1230040
                        status:
                          type: integer
                          description: Status of the document
                          example: 2
                        pageNo:
                          type: integer
                          nullable: true
                          description: Page number of the document
                          example: null
                        uploadTime:
                          type: string
                          format: date-time
                          description: Time of document upload
                          example: '2025-01-06T12:28:22.992639Z'
                        url:
                          type: string
                          description: URL of the document
                          example: >-
                            https://cgfblob.blob.core.windows.net/ielts/evaluation/CBSE_10_Science_-_Mock_Test_A_Solutions.pdf
                        fileType:
                          type: integer
                          description: Type of the document
                          example: 1
        '403':
          description: Authentication failed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    example: Token has expired
              example:
                detail: Token has expired
        '404':
          description: Bad Request - Answer sheet not evaluated
          content:
            application/json:
              schema:
                type: object
                properties:
                  'error:':
                    type: object
                    properties:
                      code:
                        type: integer
                        example: 400
                      message:
                        type: object
                        properties:
                          non_field_errors:
                            type: array
                            items:
                              type: string
                              example: Model Answer not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````