matecat / MateCat-Filters

Convert any file to XLIFF and back with perfectly preserved formatting! Super easy API, plenty of supported formats and advanced segmentation.
http://filters.matecat.com
GNU Lesser General Public License v3.0
45 stars 32 forks source link

What's the difference between /AutomationService/xliff2original and /AutomationService/xliff2source resources? #2

Closed LLCampos closed 8 years ago

LLCampos commented 8 years ago

The documentation doesn't explain the difference.

The code is also confusing. In the GenerateDerivedFileResource file, which corresponds to the resource /AutomationService/xliff2source it is written that this resource takes "care of the extraction of the original file from the .XLF".

On the other hand, in the ExtractOriginalFileResource file, which corresponds to the resource /AutomationService/xliff2original it is written that the resource takes "care of the generation of the new file from the .XLF".

So, the /AutomationService/xliff2original does not return the original file? That's not really intuitive.

giusilvano commented 8 years ago

Hi LLCampos,

Sorry again for the late reply. You are right. The API design is a bit confusing and can be improved a lot. The current API is heritage of the old filters infrastructure we wrote in the early days of MateCat. Now that the new Filters are solid we are starting to rethink the REST communication layer, we plan to replace it in the next releases.

This is what the two endpoints currently do:

I promise it will be more intuitive in future. It's just a matter of time and budget. :)