Skip to content

Commit a279605

Browse files
Merge pull request #17 from DeepLcom/add-srt-support
Add SRT support for document translation to OpenAPI spec
2 parents 48dda64 + eda2048 commit a279605

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Diff for: openapi.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
{
3333
"name": "TranslateDocuments",
34-
"description": "The document translation API allows you to translate whole documents and supports the following file types and extensions:\n * `docx` - Microsoft Word Document\n * `pptx` - Microsoft PowerPoint Document\n * `xlsx` - Microsoft Excel Document\n * `pdf` - Portable Document Format\n * `htm / html` - HTML Document\n * `txt` - Plain Text Document\n * `xlf / xliff` - XLIFF Document, version 2.1\n\nPlease note that with every submitted document of type .pptx, .docx, .xlsx, or .pdf,\nyou are billed a minimum of 50,000 characters with the DeepL API plan,\nno matter how many characters are included in the document.\n\n\nTranslating a document usually involves three types of HTTP requests:\n - [upload](https://www.deepl.com/docs-api/documents/translate-document) the document to be translated,\n - periodically [check the status](https://www.deepl.com/docs-api/documents/get-document-status) of the document translation,\n - once the status call reports `done`, [download](https://www.deepl.com/docs-api/documents/download-document) the translated document.\n\n\nTo learn more about context in DeepL API translations, we recommend [this article](https://www.deepl.com/docs-api/general/working-with-context)."
34+
"description": "The document translation API allows you to translate whole documents and supports the following file types and extensions:\n * `docx` - Microsoft Word Document\n * `pptx` - Microsoft PowerPoint Document\n * `xlsx` - Microsoft Excel Document\n * `pdf` - Portable Document Format\n * `htm / html` - HTML Document\n * `txt` - Plain Text Document\n * `xlf / xliff` - XLIFF Document, version 2.1\n * `srt` - SRT Document\n\nPlease note that with every submitted document of type .pptx, .docx, .xlsx, or .pdf,\nyou are billed a minimum of 50,000 characters with the DeepL API plan,\nno matter how many characters are included in the document.\n\n\nTranslating a document usually involves three types of HTTP requests:\n - [upload](https://www.deepl.com/docs-api/documents/translate-document) the document to be translated,\n - periodically [check the status](https://www.deepl.com/docs-api/documents/get-document-status) of the document translation,\n - once the status call reports `done`, [download](https://www.deepl.com/docs-api/documents/download-document) the translated document.\n\n\nTo learn more about context in DeepL API translations, we recommend [this article](https://www.deepl.com/docs-api/general/working-with-context)."
3535
},
3636
{
3737
"name": "ManageGlossaries",
@@ -394,7 +394,7 @@
394394
"file": {
395395
"type": "string",
396396
"format": "binary",
397-
"description": "The document file to be translated. The file name should be included in this part's content disposition. As an alternative, the filename parameter can be used. The following file types and extensions are supported:\n * `docx` - Microsoft Word Document\n * `pptx` - Microsoft PowerPoint Document\n * `xlsx` - Microsoft Excel Document\n * `pdf` - Portable Document Format\n * `htm / html` - HTML Document\n * `txt` - Plain Text Document\n * `xlf / xliff` - XLIFF Document, version 2.1"
397+
"description": "The document file to be translated. The file name should be included in this part's content disposition. As an alternative, the filename parameter can be used. The following file types and extensions are supported:\n * `docx` - Microsoft Word Document\n * `pptx` - Microsoft PowerPoint Document\n * `xlsx` - Microsoft Excel Document\n * `pdf` - Portable Document Format\n * `htm / html` - HTML Document\n * `txt` - Plain Text Document\n * `xlf / xliff` - XLIFF Document, version 2.1\n * `srt` - SRT Document"
398398
},
399399
"filename": {
400400
"type": "string",

Diff for: openapi.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ tags:
3232
* `htm / html` - HTML Document
3333
* `txt` - Plain Text Document
3434
* `xlf / xliff` - XLIFF Document, version 2.1
35+
* `srt` - SRT Document
3536
3637
Please note that with every submitted document of type .pptx, .docx, .xlsx, or .pdf,
3738
you are billed a minimum of 50,000 characters with the DeepL API plan,
@@ -371,6 +372,7 @@ paths:
371372
* `htm / html` - HTML Document
372373
* `txt` - Plain Text Document
373374
* `xlf / xliff` - XLIFF Document, version 2.1
375+
* `srt` - SRT Document
374376
filename:
375377
type: string
376378
description: The name of the uploaded file. Can be used as an alternative

Diff for: openapi_gitbook.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ tags:
3232
* `htm / html` - HTML Document
3333
* `txt` - Plain Text Document
3434
* `xlf / xliff` - XLIFF Document, version 2.1
35+
* `srt` - SRT Document
3536
- name: ManageGlossaries
3637
description: |-
3738
The *glossary* functions allow you to create, inspect, and delete glossaries.
@@ -279,6 +280,7 @@ paths:
279280
* `htm / html` - HTML Document
280281
* `txt` - Plain Text Document
281282
* `xlf / xliff` - XLIFF Document, version 2.1
283+
* `srt` - SRT Document
282284
filename:
283285
type: string
284286
description: The name of the uploaded file. Can be used as an alternative

0 commit comments

Comments
 (0)