--

Using a version parameter in the URL is common, but it’s not the most RESTful. Headers, like the Accept header, are designed for version negotiation, keeping the URI stable for caching and bookmarking. It’s more aligned with REST principles and used by GitHub and Stripe. While URL versioning might seem easier, headers are better for long-term scalability.

--

--

Responses (1)