Base URL
The API base URL varies depending on the environment:- Production:
https://autonomous.stu.nighthawkcodingsociety.com - Local Development:
http://localhost:8888 - Local (127.0.0.1):
http://127.0.0.1:8888
Authentication
The API uses credential-based authentication with cookies:CORS Configuration
All API requests use CORS mode to enable cross-origin requests:Common Headers
Include these headers with all API requests:Media type of the request body
Custom header to identify the request source
Fetch Configuration
The standard fetch options used across the application:Error Handling
All endpoints follow standard HTTP status codes:- 200: Success
- 400: Bad Request - Invalid parameters
- 401: Unauthorized - Authentication required
- 404: Not Found - Resource doesn’t exist
- 500: Internal Server Error
error field:
Rate Limiting
The API implements standard rate limiting. Check response headers for:X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset