This is a RESTful API built with Express.js for managing basic school information. It provides endpoints for creating, reading, updating, and deleting data related to students, teachers, courses, and grades.
- Clone the repository:
git clone https://github.com/excellencyjumo/basic-school-api.git
- Install dependencies:
npm install
- Start the server:
npm start
- Access the API endpoints using a tool like Postman or cURL.
GET /students
- Get all studentsGET /students/:id
- Get a specific student by IDPOST /students
- Create a new studentPUT /students/:id
- Update a student by IDDELETE /students/:id
- Delete a student by ID
GET /teachers
- Get all teachersGET /teachers/:id
- Get a specific teacher by IDPOST /teachers
- Create a new teacherPUT /teachers/:id
- Update a teacher by IDDELETE /teachers/:id
- Delete a teacher by ID
GET /courses
- Get all coursesGET /courses/:id
- Get a specific course by IDPOST /courses
- Create a new coursePUT /courses/:id
- Update a course by IDDELETE /courses/:id
- Delete a course by ID
Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License.