API de glossaire
Créer un Glossaire
/v1/glossary/createCréer un nouveau glossaire avec des termes et leurs traductions.
Exemple
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": {
6 "id": "N9aErn"
7 },
8 "targetLang": "English",
9 "keys": "[\"储蓄分流\"]",
10 "translated": "{'储蓄分流':'Diversion of household deposits'}"
11}'Paramètres de requête
| Paramètres | Type | Par défaut | Description | Exemple |
|---|---|---|---|---|
| *name | String | - | Nom du glossaire | Terminologie financière |
| desc | String | - | Description du glossaire | - |
| *targetLang | String | - |
| English |
| *keys | String[] | - | Liste des termes sources | ["储蓄分流"] |
| *translated | JSON | - | Correspondance des termes aux traductions | {'储蓄分流':'Diversion of household deposits'} |
Réponse
| Paramètres | Type | Par défaut | Description | Exemple |
|---|---|---|---|---|
| glossaryId | String | - | Identifiant du glossaire | - |