APIСправочник API
Читаемое представление SMILES
POST /v1/chemistry/convert
POST /v1/chemistry/convert
Доступ
Требуется bearer-авторизация. Описание операции задаёт дополнительные права, роли и ограничения для сессий кабинета. Сам по себе API-ключ их не предоставляет.
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
smiles | string | да | |
include_inchi | boolean | нет | По умолчанию: false. |
Полная схема: ConvertSmilesRequest
{
"properties": {
"smiles": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"title": "Smiles"
},
"include_inchi": {
"type": "boolean",
"title": "Include Inchi",
"default": false
}
},
"additionalProperties": false,
"type": "object",
"required": [
"smiles"
],
"title": "ConvertSmilesRequest"
}Ответы
| HTTP | Описание | Тип |
|---|---|---|
| 200 | Успешный ответ | application/json: SmilesConversionResult |
| 401 | Требуется авторизация | application/problem+json: ProblemDetails |
| 402 | Недостаточно кредитов | application/problem+json: ProblemDetails |
| 403 | Доступ запрещён | application/problem+json: ProblemDetails |
| 408 | Время запроса истекло | application/problem+json: ProblemDetails |
| 413 | Превышен размер запроса | application/problem+json: ProblemDetails |
| 422 | Ошибка входных данных | application/problem+json: ProblemDetails |
| 429 | Превышен лимит | application/problem+json: ProblemDetails |
| 502 | Ошибка шлюза | application/problem+json: ProblemDetails |
| 503 | Сервис недоступен | application/problem+json: ProblemDetails |
Ответ: SmilesConversionResult
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
kind | "molecule" ∣ "reaction" | да | |
original_smiles | string | да | |
canonical_smiles | string | да | |
ascii | string | да | |
unicode | string | да | |
molecules | ConvertedCompound[] | да | |
reactants | ConvertedCompound[] | да | |
agents | ConvertedCompound[] | да | |
products | ConvertedCompound[] | да | |
atom_balance | AtomConservation ∣ null | да | |
lossy_formula_display | boolean | да | |
limitations | string[] | да |
Полная схема
{
"properties": {
"kind": {
"type": "string",
"enum": [
"molecule",
"reaction"
],
"title": "Kind"
},
"original_smiles": {
"type": "string",
"title": "Original Smiles"
},
"canonical_smiles": {
"type": "string",
"title": "Canonical Smiles"
},
"ascii": {
"type": "string",
"title": "Ascii"
},
"unicode": {
"type": "string",
"title": "Unicode"
},
"molecules": {
"items": {
"$ref": "#/components/schemas/ConvertedCompound"
},
"type": "array",
"title": "Molecules"
},
"reactants": {
"items": {
"$ref": "#/components/schemas/ConvertedCompound"
},
"type": "array",
"title": "Reactants"
},
"agents": {
"items": {
"$ref": "#/components/schemas/ConvertedCompound"
},
"type": "array",
"title": "Agents"
},
"products": {
"items": {
"$ref": "#/components/schemas/ConvertedCompound"
},
"type": "array",
"title": "Products"
},
"atom_balance": {
"anyOf": [
{
"$ref": "#/components/schemas/AtomConservation"
},
{
"type": "null"
}
]
},
"lossy_formula_display": {
"type": "boolean",
"const": true,
"title": "Lossy Formula Display"
},
"limitations": {
"items": {
"type": "string"
},
"type": "array",
"title": "Limitations"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"kind",
"original_smiles",
"canonical_smiles",
"ascii",
"unicode",
"molecules",
"reactants",
"agents",
"products",
"atom_balance",
"lossy_formula_display",
"limitations"
],
"title": "SmilesConversionResult"
}Эта страница генерируется из OpenAPI. Примеры показывают схемы, а не вымышленные успешные ответы.