My App API Documentation


Instructions for /auth Route


Instructions for /users Routes

GET /users

Fetches all users from the database.

GET /users/:id

Fetches a user by their ID from the database.

POST /users

Creates a new user.

PATCH /users

Updates an existing user.

PATCH /users/:id

Updates a user's children.

DELETE /users/:id

Deletes a user from the database.


Instructions for /students Routes

GET /students

Fetches all students from the database.

GET /students/:id

Fetches a student by their ID from the database.

POST /students

Creates a new student.

PATCH /students

Updates an existing student.

PATCH /students/:id

Updates a student's enrolled classes.

DELETE /students

Deletes a student from the database.


Instructions for /classes Routes

GET /classes

Fetches all classes from the database.

GET /classes/:id

Fetches a class by its ID from the database.

POST /classes

Creates a new class.

PATCH /classes

Updates an existing class.

PATCH /classes/:id

Updates a class's enrollments.

DELETE /classes

Deletes a class from the database.