Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
keypusher
on March 6, 2014
|
parent
|
context
|
favorite
| on:
Best practices for API versioning?
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
on March 6, 2014
[–]
As 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
on March 6, 2014
|
parent
|
next
[–]
Why not use a custom type instead of the 'Content-Type' header?
Edit: Looks like this may not be possible on a HTML 5 form.
begriffs
on March 6, 2014
|
parent
|
prev
|
next
[–]
Maybe posting should be done with a richer client-side app than a vanilla form. The unaided browser is a pretty sad user agent.
wprl
on March 6, 2014
|
parent
|
prev
[–]
The thing is, this isn't all that important...
wprl
on March 6, 2014
|
root
|
parent
[–]
A down vote isn't a substitute for a valid reason why supporting vanilla forms is an important point in the API versioning discussion ;)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: