API Endpoints should follow a nice easily reproducible format to identify that it is an API and correspond to the data it will be manipulating. We should also define a system for adding new endpoints and how to name them when added.
For example, we could follow the naming scheme of something like this:
"/getHostnames" (current endpoint definition) could be changed to:
"/api/adapt/hostnames"
- /api (shows that we're accessing an api)
- /adapt (shows that the endpoint is used for the adapt frontend)
- /hostnames (shows that we're accessing data by hostname)
API Endpoints should follow a nice easily reproducible format to identify that it is an API and correspond to the data it will be manipulating. We should also define a system for adding new endpoints and how to name them when added.
For example, we could follow the naming scheme of something like this:
"/getHostnames" (current endpoint definition) could be changed to:
"/api/adapt/hostnames"