GET api/v1/Minicard?text={text}&srcLang={srcLang}&dstLang={dstLang}

Minicard (short translation for word or phrase).
Requires Authorization HTTP-header with auth token: "Authorization: Bearer {token}".
See /api/v1/authenticate method description for details.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
text

Word or phrase for translation

string

Обязательно

srcLang

Source language

unsigned integer

Обязательно

dstLang

Target language

unsigned integer

Обязательно

Body Parameters

None.

Request Formats

text/json, application/json

Sample:
?text=冬&srcLang=1028&dstLang=1049

Response Information

Resource Description

Status: result
200: minicard from Lingvo dictionaries for given text
404: dictionaries not found for specified direction
404: translations not found for specified text

Minicard
NameDescriptionTypeAdditional information
SourceLanguage

Source language.

unsigned integer

None.

TargetLanguage

Target language.

unsigned integer

None.

Heading

Heading.

string

None.

Translation

Translation.

WordListItem

None.

SeeAlso

See also list.

Collection of string

None.

Response Formats

text/json, application/json

Sample:
{
  "SourceLanguage": 1028,
  "TargetLanguage": 1049,
  "Heading": "冬",
  "Translation": {
    "Heading": "冬",
    "Translation": "зима́; зи́мний",
    "DictionaryName": "Universal (Ch-Ru)",
    "SoundName": "",
    "Type": 1,
    "OriginalWord": ""
  },
  "SeeAlso": []
}