Menu
Back to Discussions

api versioning strategy: url path versus header.

Majd Abboud
Majd Abboud
·4095 views
hey everyone, i'm starting a chat about API versioning. we've been going back and forth on whether to use URL path versioning, like /v1/users, or a custom header, say X-API-Version: 1. both have their good and bad points, you know. path versioning is super clear but makes your URLs messy. header versioning keeps things neat, but it might be harder for people to see. what do you all think, and what have you seen work. when did one way seem way better than the other, and what was the reason.
41 comments

Comments

Loading comments...