APIСправочник API
Точное преобразование
POST /v1/reactions/lookup
POST /v1/reactions/lookup
Доступ
Требуется bearer-авторизация. Описание операции задаёт дополнительные права, роли и ограничения для сессий кабинета. Сам по себе API-ключ их не предоставляет.
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
reaction_smiles | string | да | SMILES реакции; агенты не входят в её идентичность. |
limit | integer | нет | Максимальное количество записей: от 1 до 100. По умолчанию: 10. |
offset | integer | нет | Смещение страницы, начиная с нуля. По умолчанию: 0. |
Полная схема: LookupReactionRequest
{
"properties": {
"reaction_smiles": {
"type": "string",
"maxLength": 30000,
"minLength": 1,
"title": "Reaction Smiles",
"description": "Reaction SMILES; agents are not part of the identity."
},
"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": [
"reaction_smiles"
],
"title": "LookupReactionRequest"
}Ответы
| HTTP | Описание | Тип |
|---|---|---|
| 200 | Успешный ответ | application/json: LookupResult |
| 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 |
Ответ: LookupResult
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
items | Observation[] | да | |
limit | integer | да | |
offset | integer | да | |
has_more | boolean | да | |
next_offset | integer ∣ null | да | |
match | string | да | |
agents_used_in_identity | boolean | да |
Полная схема
{
"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"
},
"match": {
"type": "string",
"const": "exact_original_transformation",
"title": "Match"
},
"agents_used_in_identity": {
"type": "boolean",
"title": "Agents Used In Identity"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"items",
"limit",
"offset",
"has_more",
"next_offset",
"match",
"agents_used_in_identity"
],
"title": "LookupResult"
}Эта страница генерируется из OpenAPI. Примеры показывают схемы, а не вымышленные успешные ответы.