APIСправочник API
Полная запись источника
GET /v1/observations/{observation_id}
GET /v1/observations/{observation_id}
Доступ
Требуется bearer-авторизация. Описание операции задаёт дополнительные права, роли и ограничения для сессий кабинета. Сам по себе API-ключ их не предоставляет.
Параметры
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
observation_id (path) | string | да | |
include_raw (query) | boolean | нет |
Тело запроса
Тело запроса не требуется.
Ответы
| HTTP | Описание | Тип |
|---|---|---|
| 200 | Успешный ответ | application/json: ObservationDetail |
| 401 | Требуется авторизация | application/problem+json: ProblemDetails |
| 402 | Недостаточно кредитов | application/problem+json: ProblemDetails |
| 403 | Доступ запрещён | application/problem+json: ProblemDetails |
| 404 | Не найдено | 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 |
Ответ: ObservationDetail
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
dataset_revision | string ∣ null | нет | Версия неизменяемого снимка корпуса. |
record_digest | string ∣ null | нет | SHA-256 исходной записи и нормализованного научного содержания; не меняется при добавлении других записей в корпус. |
observation_id | string | да | |
reaction_id | string ∣ null | да | |
reaction_smiles | string ∣ null | да | |
conditions | Conditions | да | |
evidence | Evidence | да | |
validation | Validation | да | |
balancing | Balancing | да | |
original_reaction_smiles | string ∣ null | да | |
rebalanced_reaction_smiles | string ∣ null | да | |
imputed_components | ImputedComponents | да | |
source | Source | да | |
paragraph_text | string ∣ null | да | |
raw_metadata | object ∣ null | нет | Только при include_raw=true. |
Полная схема
{
"properties": {
"dataset_revision": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Dataset Revision",
"description": "Immutable corpus snapshot revision."
},
"record_digest": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
],
"title": "Record Digest",
"description": "SHA-256 of source-record and normalized scientific semantics; stable across corpus appends."
},
"observation_id": {
"type": "string",
"title": "Observation Id"
},
"reaction_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reaction Id"
},
"reaction_smiles": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Reaction Smiles"
},
"conditions": {
"$ref": "#/components/schemas/Conditions"
},
"evidence": {
"$ref": "#/components/schemas/Evidence"
},
"validation": {
"$ref": "#/components/schemas/Validation"
},
"balancing": {
"$ref": "#/components/schemas/Balancing"
},
"original_reaction_smiles": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Original Reaction Smiles"
},
"rebalanced_reaction_smiles": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Rebalanced Reaction Smiles"
},
"imputed_components": {
"$ref": "#/components/schemas/ImputedComponents"
},
"source": {
"$ref": "#/components/schemas/Source"
},
"paragraph_text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Paragraph Text"
},
"raw_metadata": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Raw Metadata",
"description": "Only with include_raw=true."
}
},
"additionalProperties": true,
"type": "object",
"required": [
"observation_id",
"reaction_id",
"reaction_smiles",
"conditions",
"evidence",
"validation",
"balancing",
"original_reaction_smiles",
"rebalanced_reaction_smiles",
"imputed_components",
"source",
"paragraph_text"
],
"title": "ObservationDetail"
}Эта страница генерируется из OpenAPI. Примеры показывают схемы, а не вымышленные успешные ответы.