#openapi #deep-l #translation #api-bindings

deepl-openapi

The DeepL API provides programmatic access to DeepL’s machine translation technology

1 stable release

2.7.1 Feb 11, 2023
1.0.0 Feb 11, 2023

#2320 in Web programming

26 downloads per month

Apache-2.0

78KB
1.5K SLoC

Rust API client for deepl

The DeepL API provides programmatic access to DeepL’s machine translation technology.

For more information, please visit https://www.deepl.com/contact-us

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 2.7.0
  • Package version: 2.7.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named deepl and add the following to Cargo.toml under [dependencies]:

cargo add deepl-openapi

Documentation for API Endpoints

All URIs are relative to https://api.deepl.com/v2

Class Method HTTP request Description
ManageGlossariesApi create_glossary POST /glossaries Create a Glossary
ManageGlossariesApi delete_glossary DELETE /glossaries/{glossary_id} Delete a Glossary
ManageGlossariesApi get_glossary GET /glossaries/{glossary_id} Retrieve Glossary Details
ManageGlossariesApi get_glossary_entries GET /glossaries/{glossary_id}/entries Retrieve Glossary Entries
ManageGlossariesApi list_glossaries GET /glossaries List all Glossaries
ManageGlossariesApi list_glossary_languages GET /glossary-language-pairs List Language Pairs Supported by Glossaries
MetaInformationApi get_languages GET /languages Retrieve Supported Languages
MetaInformationApi get_usage GET /usage Check Usage and Limits
TranslateDocumentsApi download_document POST /document/{document_id}/result Download Translated Document
TranslateDocumentsApi get_document_status POST /document/{document_id} Check Document Status
TranslateDocumentsApi translate_document POST /document Upload and Translate a Document
TranslateTextApi translate_text POST /translate Request Translation

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Apache License 2.0

Dependencies

~4–18MB
~259K SLoC