Skip to content

FAQ

Frequent questions about endpoints: the difference from a URL, how many to expose, and how to version them.

Endpoint vs URL?

A URL is the address of a resource. An endpoint is a method plus URL — the callable unit. Two endpoints can share one URL.

Endpoint vs route?

A route is the server's matching rule. An endpoint is the concept the client calls. The route implements the endpoint.

How many endpoints?

Enough to model the resources, no more. Every endpoint is a contract and a maintenance cost.

How to version?

In the URL (/v1/), in a header (Accept: application/vnd.api+json;version=1), or not at all if the change is backwards compatible. Pick one and document it.