Glossar-API
Glossar erstellen
/v1/glossary/createErstellen Sie ein neues Glossar mit Begriffen und Übersetzungen.
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 | - | Glossar-Name | Finanzterminologie |
| desc | String | - | Glossar-Beschreibung | - |
| *targetLang | String | - |
| English |
| *keys | String[] | - | Liste der Quellbegriffe | ["储蓄分流"] |
| *translated | JSON | - | Zuordnung von Begriffen zu Übersetzungen | {'储蓄分流':'Diversion of household deposits'} |
Antwort
| Parameter | Typ | Standard | Beschreibung | Beispiel |
|---|---|---|---|---|
| glossaryId | String | - | Glossar-ID | - |