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

# Get All Students

> Returns all students registered in the system.



## OpenAPI

````yaml GET /students
openapi: 3.1.0
info:
  title: Classroom Manager API
  description: >-
    A mock API that allows a teacher to manage information about students in
    their classes.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: http://sandbox.mintlify.com
security:
  - bearerAuth: []
paths:
  /students:
    get:
      description: Returns all students registered in the system.
      parameters:
        - name: gradeLevel
          in: query
          description: >-
            Specify a grade level to retrieve a list of all students in that
            grade.
          schema:
            type: integer
            format: int32
            minimum: 1
            maximum: 12
            example: 3
      responses:
        '200':
          description: >-
            Returns a list of all students in the system and their associated
            information.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Student'
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Student:
      required:
        - firstName
        - lastName
        - gradeLevel
        - GPA
        - attendanceStatus
        - id
      type: object
      properties:
        firstName:
          description: The first name of the student.
          type: string
          minLength: 1
          maxLength: 60
          example: John
        lastName:
          description: The last name of the student.
          type: string
          minLength: 1
          maxLength: 60
          example: Smith
        GPA:
          description: >-
            Student's average grade in the class on a 4.0 scale. Two decimal
            points allowed.
          type: number
          format: double
          minimum: 0
          maximum: 4
          example: 3.95
        gradeLevel:
          description: >-
            Student's grade level (from 1st to 12th grade), expressed as an
            integer between 1 and 12.
          type: integer
          minimum: 1
          maximum: 12
          example: 1
        attendanceStatus:
          description: >-
            Used to indicate if the student is present, late, or absent to class
            that day.
          type: string
          enum:
            - present
            - late
            - absent
          example: present
        id:
          description: >-
            Identification number of the student written as a 5-digit number.
            The first 2 digits indicate the student's grade level. The last 3
            digits indicate the student's number within the grade. The system
            supports up to 999 students in each grade level. Example: '01234',
            where the student is the 234th student in 1st grade.
          type: string
          format: ([0-9]+)
          maxLength: 5
          minLength: 5
          example: '01234'
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````