To get views in the appropriate language, you simply set the Accept-Language HTTP header.
Inquiry:
GET /Hotel/345
Accept-Language: fr
Answer:
<Hotel>
<Description xml:lang='fr'>Ce edifice est magnifique</Description>
</Hotel>
To perform updates, you can simply include several description elements, assuming that you are using xml as the format of your media type.
Inquiry:
PUT /Hotel/345
<Hotel>
<Description xml:lang='en'>This building is magnificent</Description>
<Description xml:lang='fr'>Ce edifice est magnifique</Description>
</Hotel>
source
share