A secure API for managing employee leave requests. Requires both JWT and API Key for authentication.
Register or log in to get your API credentials.
Once you have your API Key and JWT Token, use them in requests:
curl -X POST http://localhost:4000/leaves \
-H "x-api-key: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"reason":"Vacation","startDate":"2025-12-01","endDate":"2025-12-10"}'
Explore all endpoints interactively: Open API Docs