Refactor API endpoints for consistency and clarity

- Updated route paths for hackathon submissions, notifications, registrations, and teams to include more descriptive actions (e.g., "update", "create", "delete").
- Removed deprecated routes and adjusted corresponding test cases to reflect new endpoint structures.
- Enhanced test scripts to ensure compatibility with updated API routes and improved error handling for OTP resend functionality.
- Adjusted server startup script for better Windows compatibility and streamlined process management.
This commit is contained in:
MythEclipse
2025-10-29 14:27:07 +07:00
parent 98c46611fb
commit 97c2fce7be
19 changed files with 361 additions and 155 deletions
+2 -2
View File
@@ -35,10 +35,10 @@ test_mentor_endpoints() {
# Note: Mentor Me and Mentor Status endpoints require mentor-specific token
# test_api_endpoint "GET Mentor Me" "GET" "/v1/mentors/me" 200 "" true
# test_api_endpoint "GET Mentor Status" "GET" "/v1/mentors/status" 200 "" true
# test_api_endpoint "GET Mentor Status" "GET" "/v1/mentors/me/status" 200 "" true
# Delete mentor (admin)
# test_api_endpoint "DELETE Mentor" "DELETE" "/v1/mentors/$test_mentor_id" 200 "" true
# test_api_endpoint "DELETE Mentor" "DELETE" "/v1/mentors/delete/$test_mentor_id" 200 "" true
}
# Run if executed directly