APIСправочник API
Статистика корпуса
GET /v1/stats
GET /v1/stats
Доступ
Требуется bearer-авторизация. Описание операции задаёт дополнительные права, роли и ограничения для сессий кабинета. Сам по себе API-ключ их не предоставляет.
Тело запроса
Тело запроса не требуется.
Ответы
| HTTP | Описание | Тип |
|---|---|---|
| 200 | Успешный ответ | application/json: Stats |
| 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 |
Ответ: Stats
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
dataset_revision | string ∣ null | нет | |
observations | integer | да | |
reactions | integer | да | |
quarantined | integer | да | |
upstream_valid | integer | да | |
with_temperature | integer | да | |
with_pressure | integer | да | |
with_agents | integer | да | |
with_all_three | integer | да | |
schema_version | integer | да | |
units | object | да | |
expert_confirmed | integer | да | |
similarity_is_prediction | boolean | да | |
ingest_states | object | да | |
data_complete | boolean ∣ null | да |
Полная схема
{
"properties": {
"dataset_revision": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Dataset Revision"
},
"observations": {
"type": "integer",
"title": "Observations"
},
"reactions": {
"type": "integer",
"title": "Reactions"
},
"quarantined": {
"type": "integer",
"title": "Quarantined"
},
"upstream_valid": {
"type": "integer",
"title": "Upstream Valid"
},
"with_temperature": {
"type": "integer",
"title": "With Temperature"
},
"with_pressure": {
"type": "integer",
"title": "With Pressure"
},
"with_agents": {
"type": "integer",
"title": "With Agents"
},
"with_all_three": {
"type": "integer",
"title": "With All Three"
},
"schema_version": {
"type": "integer",
"title": "Schema Version"
},
"units": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Units"
},
"expert_confirmed": {
"type": "integer",
"title": "Expert Confirmed"
},
"similarity_is_prediction": {
"type": "boolean",
"title": "Similarity Is Prediction"
},
"ingest_states": {
"additionalProperties": {
"type": "string"
},
"type": "object",
"title": "Ingest States"
},
"data_complete": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"title": "Data Complete"
}
},
"additionalProperties": true,
"type": "object",
"required": [
"observations",
"reactions",
"quarantined",
"upstream_valid",
"with_temperature",
"with_pressure",
"with_agents",
"with_all_three",
"schema_version",
"units",
"expert_confirmed",
"similarity_is_prediction",
"ingest_states",
"data_complete"
],
"title": "Stats"
}Эта страница генерируется из OpenAPI. Примеры показывают схемы, а не вымышленные успешные ответы.