hyperoslo / api-playbook

A place to define the conventions we use to build APIs
4 stars 1 forks source link

Add `Accept-Language` to handle localization #2

Closed fespinoza closed 9 years ago

fespinoza commented 9 years ago

this is a HTTP 1.1 standard header, so it makes sense to use it for localization over URL query params

since we will be using headers anyway for different purposes on the requests

jgorset commented 9 years ago

This makes lots of sense to me! :+1:

jgorset commented 9 years ago

I merged with master, but also in that commit I made the change to refer to the HTTP/1.1 protocol reference instead of explaining it (it should've been two commits, but I got carried away).