4 ms·
That is defined by the previous segment of the path. The content of the file `/api/v1/employees/100` need to be defined off-band somehow since you cant actuall
by afiori 4y ago
That is defined by the previous segment of the path.
The content of the file `/api/v1/employees/100` need to be defined off-band somehow since you cant actually put an employee on disk.
moreover part of REST is that you are not responding with static files by path, but with representations of entities; the question then is whether the entity is the employee or the id.
I agree that `/api/v1/employees/100` is not the best name for the id entity, something like `/api/v1/employee-id-status/100` might be more descriptive.