How should I set up my API so that it can return resources in all languages instead of just one language?
Example of response:
{
"id": 1,
"name_en-CA": "Routes",
"name_fr-CA": "Circuits",
"active": true,
"type": "A",
"effective_from": "2016-04-24T03:00:00",
"effective_from": "2016-09-04T02:59:59",
}
I know there's the Accept-Language
request header, but is it appropriate to respond with all languages in the absence of an Accept-Langauge
header? And would I not send the Content-Language
header in this case?