APIСправочник API
Реакции молекулы
POST /v1/molecules/reactions
POST /v1/molecules/reactions
Доступ
Требуется bearer-авторизация. Описание операции задаёт дополнительные права, роли и ограничения для сессий кабинета. Сам по себе API-ключ их не предоставляет.
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
smiles | string | да | Одна молекула, без точек-разделителей. |
role | "reactant" ∣ "product" ∣ "agent" ∣ null | нет | |
limit | integer | нет | Максимальное количество записей: от 1 до 100. По умолчанию: 10. |
offset | integer | нет | Смещение страницы, начиная с нуля. По умолчанию: 0. |
Полная схема: MoleculeReactionsRequest
{
"properties": {
"smiles": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"title": "Smiles",
"description": "One molecule (no dots)."
},
"role": {
"anyOf": [
{
"type": "string",
"enum": [
"reactant",
"product",
"agent"
]
},
{
"type": "null"
}
],
"title": "Role"
},
"limit": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"title": "Limit",
"description": "Maximum records, from 1 to 100.",
"default": 10
},
"offset": {
"type": "integer",
"maximum": 1000000,
"minimum": 0,
"title": "Offset",
"description": "Zero-based pagination offset.",
"default": 0
}
},
"additionalProperties": false,
"type": "object",
"required": [
"smiles"
],
"title": "MoleculeReactionsRequest"
}Ответы
| HTTP | Описание | Тип |
|---|---|---|
| 200 | Успешный ответ | application/json: ObservationPage |
| 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 |
Ответ: ObservationPage
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
items | Observation[] | да | |
limit | integer | да | |
offset | integer | да | |
has_more | boolean | да | |
next_offset | integer ∣ null | да |
Полная схема
{
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/Observation"
},
"type": "array",
"title": "Items"
},
"limit": {
"type": "integer",
"title": "Limit"
},
"offset": {
"type": "integer",
"title": "Offset"
},
"has_more": {
"type": "boolean",
"title": "Has More"
},
"next_offset": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Next Offset"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"items",
"limit",
"offset",
"has_more",
"next_offset"
],
"title": "ObservationPage"
}Эта страница генерируется из OpenAPI. Примеры показывают схемы, а не вымышленные успешные ответы.