> ## 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 Assignment Question

>  This API allows authenticated users to retrieve a paginated list of assignments along with associated metadata like total count, pagination links, and assignment details.


 **Key Notes:** 
 - The response includes `count`, `pageSize`, `showing`, `next`, and `previous` to handle pagination. 
 - The `data` field contains an array of assignment objects following the `UpdatedAssignmentResponse` schema. 
 - Useful for dashboards or any view where a user needs to browse or manage multiple assignments.


 **Scenario: Fetching Assignments for Review** 
 - A teacher wants to review all assignments created for Grade 7. 
 - They send a GET request to this endpoint (optionally with query parameters for filtering/pagination). 
 - The system responds with a paginated list of assignments and relevant navigation links.


 <Tip> Want to receive automatic notifications when assignment questions are processed? Set up webhooks to get real-time updates on assignment questions extraction. Check out the [Webhooks](/api-reference/endpoint/webhook/v1-get-webhook-template). </Tip>




## OpenAPI

````yaml GET /assignment-evaluation/v1/assignment/{id}/questions/
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}/questions/:
    get:
      tags:
        - Assignments
      summary: Get Assignment Questions
      operationId: getAssignmentQuestions
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier of the assignment
      responses:
        '200':
          description: Assignment retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 2600413f-7c6e-46ef-8ea9-3e7b5834879f
                    description: Unique identifier for the assignment
                  assignmentName:
                    type: string
                    example: English Assignment
                    description: Name of the assignment
                  instruction:
                    type: string
                    example: Write a short story about a day in the life of a cat.
                    description: Instructions for the assignment
                  marks:
                    type: number
                    format: float
                    example: 0
                    description: Total marks for the assignment
                  grade:
                    type: string
                    example: '7'
                    description: Grade of the assignment
                  courseId:
                    type: string
                    example: '300'
                    description: ID of the course
                  parentQuestions:
                    type: array
                    description: List of parent questions in the assignment
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: b3098d35-50b4-4417-954f-0b9df6553bd4
                          description: Unique identifier for the parent question
                        questionNumber:
                          type: string
                          example: Q1
                          description: Question number of the parent question
                        text:
                          type: string
                          example: 'Add olfactory imagery to the following:'
                          description: Text of the parent question
                        marks:
                          type: number
                          format: float
                          example: 0
                          description: Marks assigned to the parent question
                        questions:
                          type: array
                          description: List of child questions under the parent question
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 246b66a3-42b3-4f25-bb52-fe03475ef0c9
                                description: Unique identifier for the child question
                              questionNumber:
                                type: string
                                example: '1'
                                description: Question number of the child question
                              text:
                                type: string
                                example: A flower shop
                                description: Text of the child question
                              marks:
                                type: number
                                format: float
                                example: 0
                                description: Marks assigned to the child question
                              diagramDescription:
                                type: string
                                example: No diagram or image provided.
                                description: >-
                                  Description of the diagram or image associated
                                  with the child question
        '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: Assignment not found
      security:
        - bearerAuth: []
components:
  schemas:
    403Response:
      type: object
      properties:
        detail:
          type: string
          example: Token has expired
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````