Welcome to the Student Management System repository. My first API Repo.
This backend service provides basic CRUD operations for managing students as well as Basic Authentication.
It exposes specific endpoints under /api/students
to create, delete, update, and fetch students.
- GET /api/students/: Retrieve all Students.
- GET /api/students/{email}: Retrieve student information based on email.
- POST /api/students/: Add a new Student to the DB
- PUT /api/students/{studentID}: Update an existing student based on email.
- DELETE /api/students/{studentID}: Delete a student by ID.
- POST /register/user: Allows for a user to sign up to the Application.
-
Retrieve all students:
- Request:
GET /api/students
- Response: Returns a list of all students in the database.
- Request:
-
Retrieve a student by email:
- Request:
GET /api/students/{email}
- Response: Returns a student in the database based on the email provided.
- Request:
-
Create a new student:
- Request:
POST /api/students
- Body: JSON object containing student details.
- Response: Returns the newly created student with its assigned ID.
- Request:
-
Update an existing student:
- Request:
PUT /api/students/{studentID}
- Body: JSON object containing updated students details.
- Response: Prints out the updated student details.
- Request:
-
Delete a student by ID:
- Request:
DELETE /api/students/{studentID}
- Response: Deletes the student with the specified ID from the database.
- Request:
-
Register a User:
- Request:
POST /register/user
- Response: Registers a User on the application.
- Request:
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or submit a pull request.