HackSlashNITP / AMS

AMS (Attendance Management System) integrates facial recognition technology to simplify attendance tracking in educational institutions. This comprehensive solution optimizes the process of marking attendance, enhancing efficiency.
MIT License
1 stars 10 forks source link

apis implementation for classroom and attendance routes #35

Closed shradhaj06 closed 5 months ago

shradhaj06 commented 6 months ago

PR Description: This PR introduces changes to the backend API routes for managing classroom and attendance records. The following updates have been made:

  1. Classroom Routes:

    • Implemented CRUD (Create, Read, Update, Delete) operations for managing classroom records.
    • Created routes for creating, retrieving all, retrieving by ID, updating, and deleting classroom records.
    • Implemented controller functions to handle each route operation.
    • Added error handling for handling invalid requests and internal server errors.
  2. Attendance Routes:

    • Implemented CRUD operations for managing attendance records.
    • Created routes for creating, retrieving all, retrieving by ID, updating, and deleting attendance records.
    • Developed controller functions to handle each route operation.
    • Included error handling mechanisms to manage errors gracefully.
  3. Controller Functions:

    • Defined controller functions for each route operation to ensure separation of concerns and maintainability.
    • Created functions for getting all records, getting records by ID, creating new records, updating records, and deleting records.
  4. Testing:

    • Tested each route to ensure proper functionality and error handling.

These changes enhance the backend API's functionality and improve its robustness by adding support for managing classroom and attendance records effectively. The PR aims to enhance the overall performance and reliability of the backend system.