3 ms·
In this context you would also have to include discoverability of URLs. In this philosophy you would not suppose how employees are named and would ask for a li
by afiori 4y ago
In this context you would also have to include discoverability of URLs.
In this philosophy you would not suppose how employees are named and would ask for a list of valid employees URLs to a URL previously returned by `/api/v1/`.
In this way you only ever call URLs that the api provided you with, so that you are not expected to find out by trial and error whether `/api/v1/employees/100` exists or not; the api itself has already told you this and a 404 is the response to trying to build your own URLs by hand.