+++
title = "Other HTTP API "
description = "Harvest Other HTTP API"
keywords = ["harvest", "http", "documentation", "api", "other"]
aliases = ["/docs/harvest/latest/http_api/other/"]
+++


# API настроек интерфейса

## Получить настройки

`GET /api/frontend/settings`

**Пример Запроса**:

```http
GET /api/frontend/settings HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
```

**Пример Ответа**:

```http
HTTP/1.1 200
Content-Type: application/json

{
  "allowOrgCreate":true,
  "appSubUrl":"",
  "buildInfo":{
    "buildstamp":xxxxxx,
    "commit":"vyyyy",
    "version":"zzzzz"
  },
  "datasources":{
    "datasourcename":{
      "index":"harvest-dash",
      "meta":{
        "annotations":true,
        "module":"plugins/datasource/harvest/datasource",
        "name":"Harvest",
        "partials":{
          "annotations":"app/plugins/datasource/harvest/partials/annotations.editor.html",
          "config":"app/plugins/datasource/harvest/partials/config.html"
        },
        "pluginType":"datasource",
        "serviceName":"Harvest",
        "type":"harvestsearch"
      }
    }
  },
  "defaultDatasource": "Harvest"
}
```

# API входа в систему

## Продлить сеанс на основе запоминания файлов cookie

`GET /api/login/ping`

**Пример Запроса**:

```http
GET /api/login/ping HTTP/1.1
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJrIjoiT0tTcG1pUlY2RnVKZTFVaDFsNFZXdE9ZWmNrMkZYbk
```

**Пример Ответа**:

```http
HTTP/1.1 200
Content-Type: application/json

{"message": "Logged in"}
```

# API для здоровья

## Возвращает медицинскую информацию о Harvestне

`GET /api/health`

**Пример Запроса**

```http
GET /api/health
Accept: application/json
```

**Пример Ответа**:

```http
HTTP/1.1 200 OK

{
  "commit": "087143285",
  "database": "ok",
  "version": "5.1.3"
}
```
