Details
-
Task
-
Resolution: Fixed
-
None
-
High
-
Improve the instanttranslate API to enable filepretranslations also via plain POST requests.
-
Empty show more show less
Description
current situation
In order to use the REST API endpoint /editor/instanttranslateapi/filepretranslate real files (multipart form data) must be given.
desired changement
In addition to that, file content should be given as plain POST parameter, so that API users can just place small files as POST content instead uploading files.
API draft
Currently /editor/instanttranslateapi/filepretranslate receives only multipart file uploads.
This issue should add the possibility to POST the following fields to the API endpoint:
fileName: the filename of the file
fileData: the raw content of the file
If binary content should be transferred, the sender must send the request though as multipart form data.
implementation
See developer comment, in addition tests should be added.
Attachments
Issue Links
- blocks
-
TRANSLATE-3925 100% match editable overwrite not working for TermTranslation projects
- Done
- is blocked by
-
TRANSLATE-3852 Workflow step "Revision language with editable 100% matches"
- Done
- mentioned in
-
Page Loading...