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

>  This API allows authenticated users to retrieve the model answer details of a specific assignment. The model answer may include associated documents, rubric information, and a hierarchical question structure with individual model answers per question.


 ### Key Parameters: 
 - **assignmentId** (`path param`, required): The unique ID of the assignment for which the model answer is requested.


 ### Response Includes: 
 - `assignmentName`: Title of the assignment. 
 - `courseId`, `grade`: Educational context of the assignment. 
 - `parentQuestions[]`: A list of question groups, each containing sub-questions. 
 - For each question: 
 - `text`, `questionNumber`, `marks` 
 - `modelAnswer`: ID, linked rubric, step marking (if any), etc.







## OpenAPI

````yaml GET /assignment-evaluation/v1/assignment/{id}/model-answer/{modelAnswerId}/
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/{id}/model-answer/{modelAnswerId}/:
    get:
      tags:
        - Assignments
      summary: Get Assignment Model Answer
      operationId: getAssignmentModelAnswer
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier of the assignment
        - name: modelAnswerId
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier of the model answer
      responses:
        '200':
          description: Model answer sheet details retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                description: Assignment model answer sheet response
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier of the assignment model answer sheet
                    example: 2600413f-7c6e-46ef-8ea9-3e7b5834879f
                  assignmentName:
                    type: string
                    description: Name of the assignment
                    example: test 2
                  instruction:
                    type: string
                    description: Instruction text for the assignment (if any)
                    nullable: true
                    example: null
                  marks:
                    type: number
                    format: float
                    description: Total marks of the assignment
                    example: 0
                  grade:
                    type: string
                    description: Grade awarded for the assignment
                    nullable: true
                    example: null
                  courseId:
                    type: string
                    description: Associated course identifier
                    example: '300'
                  parentQuestions:
                    type: array
                    description: List of grouped questions with their children
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Unique ID for the parent question
                          example: b3098d35-50b4-4417-954f-0b9df6553bd4
                        questionNumber:
                          type: string
                          description: Label/number of the parent question
                          example: Q1
                        text:
                          type: string
                          example: 'Add olfactory imagery to the following:'
                          description: Text of the parent question
                        marks:
                          type: number
                          format: float
                          description: Marks allocated to the parent question
                          example: 0
                        questions:
                          type: array
                          description: Child questions under the parent
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                format: uuid
                                description: Unique ID of the child question
                                example: 246b66a3-42b3-4f25-bb52-fe03475ef0c9
                              questionNumber:
                                type: string
                                description: Label/number of the question
                                example: '1'
                              text:
                                type: string
                                description: Text of the question
                                example: A flower shop
                              marks:
                                type: number
                                format: float
                                description: Marks allocated (if evaluated)
                                nullable: true
                                example: 0
                              diagramDescription:
                                type: string
                                description: Description of any diagram/image included
                                example: No diagram or image provided.
                              modelAnswer:
                                type: object
                                description: Model answer mapping for this question
                                properties:
                                  id:
                                    type: string
                                    format: uuid
                                    description: Unique ID of the model answer
                                    example: 69c0c508-ac57-4c43-a795-5ce0799a1240
                                  stepMarking:
                                    type: array
                                    description: List of step-wise marking logic (if any)
                                    items:
                                      type: object
                                    example: []
                                  rubric:
                                    type: string
                                    format: uuid
                                    description: >-
                                      Rubric ID associated with this model
                                      answer
                                    example: 2b973c83-2830-4712-87b7-64a8c0a99035
        '400':
          description: Bad request (validation error or business logic conflict).
          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:
                                - Assignment is not extracted yet
        '403':
          description: Authentication failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Response'
        '404':
          description: Assignment not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: 404
                      message:
                        type: object
                        properties:
                          non_field_errors:
                            type: array
                            items:
                              type: string
                              example:
                                - Model answer sheet not found
components:
  schemas:
    403Response:
      type: object
      properties:
        detail:
          type: string
          example: Token has expired

````