Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


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.


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.


Maybe posting should be done with a richer client-side app than a vanilla form. The unaided browser is a pretty sad user agent.


The thing is, this isn't all that important...


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: