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
+4 -1
View File
@@ -4,7 +4,8 @@
# Common Functions and Variables for IMPHNEN API Tests
# ==============================================================================
#!/bin/bash
# Disable MSYS path conversion for Windows compatibility
export MSYS_NO_PATHCONV=1
# Common configuration and functions for API testing
@@ -158,6 +159,7 @@ test_api_endpoint() {
local temp_file=$(mktemp)
local status_file=$(mktemp)
# MSYS path conversion disabled via export at top of file
curl -s -X "$method" "${headers[@]}" -d "$body" "$BASE_URL$endpoint" \
-D "$status_file" -o "$temp_file"
@@ -236,6 +238,7 @@ get_auth_token() {
local temp_file=$(mktemp)
local status_file=$(mktemp)
# MSYS path conversion disabled via export at top of file
curl -s -X "POST" -H "Content-Type: application/json" -d "$login_data" "$BASE_URL/v1/auth/login" \
-D "$status_file" -o "$temp_file"