API Glosar
Creează glosar
/v1/glossary/createCreează un nou glosar care conține termeni și traduceri.
Exemplu
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": "Terminologie financiară",
6 "targetLang": "English",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'
Parametri de solicitare
Parametri | Tip | Implicit | Descriere | Exemplu |
---|---|---|---|---|
*name | String | - | Numele glosarului de termeni | Terminologie financiară |
desc | String | - | Descrierea glosarului | - |
*targetLang | String | - |
| English |
*keys | String[] | - | Lista termenilor sursă | ["储蓄分流"] |
*translated | JSON | - | Maparea termenilor către traducere | {'储蓄分流':'Diversion of household deposits'} |
Răspuns
Parametri | Tip | Implicit | Descriere | Exemplu |
---|---|---|---|---|
glossaryId | String | - | ID-ul glosarului de termeni | - |