> ## 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 - Feedback

>  The API retrieves all feedback and queries against the answer for the particular answer sheet ID. This includes: 

 - Feedback from evaluators. 
 - Queries raised by students. 
 - Responses to the queries. 
 

**Scenario:**

1. **AI-Generated Feedback on Student's Answer Sheet:**
   - After the student’s answer sheet is submitted and reviewed, the teacher or administrator retrieves AI-generated feedback based on the student’s responses, model answers, and step-wise marking criteria.
   - **The API provides:**
     - **AI-Generated Feedback:** Detailed feedback on the student's answers, focusing on areas of improvement, correctness, and alignment with model answers.
     - **Query Handling:** If the student raised any queries, the API will provide AI-generated responses or clarifications.
   - **Outcome:**
     - The teacher can review the AI feedback to assess the student’s understanding, identify common issues, and offer additional clarification or support as needed. 



## OpenAPI

````yaml GET /evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/
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}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/:
    get:
      summary: Get Answer Sheet Feedback
      description: Get Answer Sheet Feedback
      parameters:
        - name: examId
          in: path
          required: true
          schema:
            type: string
            example: edaf2e84-e911-4150-9628-6d182a05ed0d
          description: Unique identifier for the exam.
        - name: ansSheetId
          in: path
          required: true
          schema:
            type: string
            example: c6275794-10ea-4876-aa97-0f9b1a57f0f3
          description: Unique identifier for the answer sheet.
        - name: ansId
          in: path
          required: true
          schema:
            type: string
            example: 11637fca-dc77-4b63-88c0-ec74126d951c
          description: Unique identifier for the answer.
      responses:
        '200':
          description: Success - The request was processed successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: Feedback provided for the answer.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: def80534-8f59-49ea-b43e-553075b1db91
                          description: Feedback unique identifier against the answers.
                        examId:
                          type: string
                          example: edaf2e84-e911-4150-9628-6d182a05ed0d
                          description: Unique identifier of the exam.
                        studentId:
                          type: string
                          description: Unique identifier of the student.
                          example: '10160091'
                        answerId:
                          type: string
                          description: Unique identifier of the answer.
                          example: 11637fca-dc77-4b63-88c0-ec74126d951c
                        feedback:
                          type: string
                          description: Feedback provided for the answer.
                          example: >-
                            The student selected an incorrect option. It is
                            important to carefully analyze the question and the
                            options provided. Understanding the characteristics
                            of a homologous series is crucial for answering such
                            questions correctly.
                        marks_deducted:
                          type: string
                          description: Marks deducted for the answer.
                          example: 1 - incorrect option selected
                        justification:
                          type: string
                          description: Justification for the feedback provided.
                          example: >-
                            The student's answer (c) gradation in Physical
                            Properties is incorrect as it does not address the
                            question of what is not observed in a homologous
                            series. The model answer correctly identifies (a)
                            Change in chemical properties as the correct
                            response.
                        room_for_improvement:
                          type: string
                          description: Room for improvement for the student.
                          example: >-
                            To achieve full marks, the student should select the
                            correct option (a) Change in chemical properties,
                            which is the only option that is not observed in a
                            homologous series.
                        feedbackQuery:
                          type: array
                          description: >-
                            Feedback query raise by the student initially this
                            will be empty
                          items:
                            type: object
        '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
          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: >-
                                Invalid Answer ID: The provided Answer ID does
                                not exist
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````