API słownika
Aktualizacja słownika terminologicznego
/v1/glossary/updateAktualizacja szczegółów słownika terminologicznego lub terminów.
Przykład
curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/update' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "glossaryId": "[string]",
6 "name": "Terminologia finansowa 2",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'
Parametry żądania
Parametry | Typ | Domyślny | Opis | Przykład |
---|---|---|---|---|
*glossaryId | String | - | ID glosariusza | - |
name | String | - | Nazwa | Terminologia finansowa 2 |
desc | String | - | Opis | - |
targetLang | String | - |
| - |
keys | String[] | - | Tablica wszystkich terminów | ["储蓄分流"] |
translated | JSON | - | Mapa tłumaczeń terminów | {'储蓄分流':'Diversion of household deposits'} |
Odpowiedź
Parametry | Typ | Domyślny | Opis | Przykład |
---|---|---|---|---|
glossaryId | String | - | ID glosariusza | - |
name | String | - | Nazwa | - |
desc | String | - | Opis | - |
targetLang | String | - | Język docelowy | - |
keys | String[] | - | Tablica wszystkich terminów | - |
translated | JSON | - | Mapa tłumaczeń terminów | - |
createdAt | DateTime | - | Data utworzenia glosariusza | - |
updatedAt | DateTime | - | Czas aktualizacji słownika terminologicznego | - |