4 ms·
Why put the version in the URI at all? Can you not just use headers to request and return particular version? Is there a downside to this approach?
by keypusher 13y ago
Why put the version in the URI at all? Can you not just use headers to request and return particular version? Is there a downside to this approach?
- simlevesque 13y agoAs others have pointed, if you try to POST a HTML5 form to any API, you can't specify the header, it will always be x-www-formurlencoded.
- sureshv 13y agoWhy not use a custom type instead of the 'Content-Type' header? Edit: Looks like this may not be possible on a HTML 5 form.
- wprl 13y agoThe thing is, this isn't all that important...
- wprl 13y agoA down vote isn't a substitute for a valid reason why supporting vanilla forms is an important point in the API versioning discussion ;)
- begriffs 13y agoMaybe posting should be done with a richer client-side app than a vanilla form. The unaided browser is a pretty sad user agent.