Open lydialegan opened 2 weeks ago
Users.js:
index.js:
App.js:
Need to add error handling to code.
Skipping for now. API routes are not being used in our code. Will revisit in the future for functionality when adding enrollment services and student adding services.
Create API Routes: Set up API routes for fetching student details, class details, and schedule information.
[x] API Routes established: Create API endpoints for the following data sets: student, class, student_classes Ensure each route follows a consistent URL structure and naming convention
[ ] Error Handling: Each route must have error handling in place, with appropriate HTTP status codes for: Success (200 OK), Bad Request (400), Unauthorized (401), Not Found (404), Server Error (500) Log errors for trouble shooting and debugging.
[ ] Test each route to verify successful data retrieval and proper handling of edge cases
[x] Validate request parameters or query strings to ensure they match expected formats and results.
Document routes, including the URL, required parameters, request/response structure, sample responses, and error handling in the comments below.