Hacker News new | past | comments | ask | show | jobs | submit login

Could you elaborate why did you pick using a header instead of making the version number part of the URL?

If the version is part of the URL, you have benefits such as -

1. It's easy to inspect the URL. For headers it's more involved.

2. Middleware (Proxies) can drop headers that they don't recognize.

3. Logging frameworks typically log URLs but don't log headers OOTB.

As someone who has built a lot of APIs for a long time, I think the decision to use headers to communicate versioning information is not optimal.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: