Glossar-API
Glossar erstellen
/v1/glossary/createNeues Glossar mit Begriffen und Übersetzungen erstellen.
Beispiel
curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/create' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "name": "Finanzterminologie",
6 "targetLang": "English",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'
Anfrageparameter
Parameter | Typ | Standard | Beschreibung | Beispiel |
---|---|---|---|---|
*name | String | - | Glossarname | Finanzterminologie |
desc | String | - | Glossarbeschreibung | - |
*targetLang | String | - |
| English |
*keys | String[] | - | Quellbegriffsliste | ["储蓄分流"] |
*translated | JSON | - | Zuordnung von Begriffen zu Übersetzungen | {'储蓄分流':'Diversion of household deposits'} |
Antwort
Parameter | Typ | Standard | Beschreibung | Beispiel |
---|---|---|---|---|
glossaryId | String | - | Terminologie-ID | - |