Base URL
The base URL is configured via theVITE_API_URL environment variable in the front end. If the variable is not set, the default is used:
POST /api/auth/login → http://localhost:5175/api/auth/login).
Authentication
Every endpoint exceptPOST /api/auth/login requires an Authorization header carrying a JWT obtained from the login endpoint.
Request format
All request bodies must be JSON. Set theContent-Type header accordingly:
Error responses
Errors are returned as plain HTTP status codes with a text body. There is no structured JSON error envelope.Available endpoints
Authentication
Obtain a JWT token via username and password login.
Personal
Create, list, and delete employee records.
Schedules
Manage vacation schedules (cronogramas) per employee and year.
Ranges
Create, list, and delete vacation date ranges within a schedule.
