gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Translation endpoint #162

Open Jotschi opened 7 years ago

Jotschi commented 7 years ago

Goal

To be able to create a translation of an existing node. We have a node in English, and we want to create a German translation. The user clicks "Create German Translation" and all the data is copied to a new de language version of that node.

Current Solution

Currently I am doing this on the client side, by making a PUT request to the node, with an updated language property, and otherwise copying all the existing values from the English version to the German version.

Issues

The following issues need to be solved:

Proposal

Create a endpoint /api/v1/projectName/nodes/<node_uuid>/translateTo/<language_code> This endpoint should handle the above issues transparently - the client does not need to worry about these details. Additionally, and binary fields will be shared by the new translated version (until a new binary is uploaded for that translation).

Jotschi commented 7 years ago

Maybe this would be a copy endpoint.