I created a multi-language site based on 8.0-alpha11. This site is configured so English is displayed when using the 'www' subdomain. Spanish is displayed when using the "es" subdomain. The following URLs are both working as a result:
http://www.RayStedman.info/node/1 -- returns English HTML
http://es.RayStedman.info/node/1 -- returns Spanish HTML
My goal is to return JSON using a RESTful GET for the two URLs above. I enabled modules, configured permissions and adjusted rest.settings. I then issued a GET request with an "Accept: application/json" header for the English URL. I received JSON content in English as expected. I then issued a GET with the Spanish URL and the same header. I received JSON content in English as well. I expected to receive JSON content in Spanish using the Spanish URL.
Please note both of these URLs access a custom content type where most of the fields are translatable. The English node was created first and then translated into Spanish.
Comments
Comment #1
Greg Sims commentedComment #2
Greg Sims commentedComment #3
Greg Sims commentedComment #4
gábor hojtsyWhich issue is/was this one a duplicate of?
Comment #5
Greg Sims commentedI believe the duplicate is: #2135829: Handling entities with translations in REST. Please reopen this issue if you do not believe this is the case.
Comment #6
gábor hojtsyRight sorry you have that listed above. My bad.