You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means when you pass around the object you don't have to construct the URL to the object programatically, which is important because the URL of an object may change in the application, and then the code that calls it (the client) doesn't have to hunt through the application code to make updates.
The general rule of developing REST client applications is you don't build any client URLs, you first fetch /api and then look up the URLs to the collections by name, and so on.
This makes it super easy for someone to build a client app talking to the API because they can kind of surf around and discover what the API structure looks like, without having to ask backend devs.
The text was updated successfully, but these errors were encountered:
We now have OpenAPI support to show endpoint paths. To make the results discoverable, we first need an API for developers to describe the endpoint results, and then make them appear in the generated OpenAPI specification.
A big thing to REST API proponents is discoverability. In addition to having the API index like
/api
when you get back a /dev/collection result, we should fill in the objects with the URLs to their resources:
This means when you pass around the object you don't have to construct the URL to the object programatically, which is important because the URL of an object may change in the application, and then the code that calls it (the client) doesn't have to hunt through the application code to make updates.
The general rule of developing REST client applications is you don't build any client URLs, you first fetch /api and then look up the URLs to the collections by name, and so on.
This makes it super easy for someone to build a client app talking to the API because they can kind of surf around and discover what the API structure looks like, without having to ask backend devs.
The text was updated successfully, but these errors were encountered: