List

Список связей между типами объектов.

Эндпоинт

GET /api/v2/type-relationships

Параметры запроса

Параметр Тип Обязательный Описание

from_type

string

Фильтр по исходному типу

includeCount

bool

Общее количество

limit

int

Размер страницы

offset

int

Смещение

rel_type

string

Фильтр по типу связи

sort

string

Поле сортировки

to_type

string

Фильтр по целевому типу

Пример запроса

GET /api/v2/type-relationships?limit=10&offset=0&includeCount=false

Пример ответа

{
  "data": [
    {
      "fromType": "connectors_system_introspection",
      "toType": "connectors_system_introspection-version",
      "linkType": "__type",
      "props": {
        "type": "connectors_system_introspection-version"
      },
      "meta": {}
    },
    {
      "fromType": "connectors_system_introspection-version",
      "toType": "connectors_system_introspection-version-backend",
      "linkType": "__type",
      "props": {
        "type": "connectors_system_introspection-version-backend"
      },
      "meta": {}
    },
    {
      "fromType": "connectors_system_introspection-version",
      "toType": "connectors_system_introspection-version-frontend",
      "linkType": "__type",
      "props": {
        "type": "connectors_system_introspection-version-frontend"
      },
      "meta": {}
    },
    {
      "fromType": "group",
      "toType": "group",
      "linkType": "__type",
      "props": {
        "type": "group"
      },
      "meta": {}
    },
    {
      "fromType": "group",
      "toType": "scala_connectors_connector",
      "linkType": "__type",
      "props": {
        "type": "scala_connectors_connector"
      },
      "meta": {}
    },
    {
      "fromType": "group",
      "toType": "ui_session",
      "linkType": "__type",
      "props": {
        "type": "ui_session"
      },
      "meta": {}
    },
    {
      "fromType": "pregel-module_keepalived",
      "toType": "pregel-module_keepalived_config",
      "linkType": "__type",
      "props": {
        "type": "pregel-module_keepalived_config"
      },
      "meta": {}
    },
    {
      "fromType": "pregel-module_seeder",
      "toType": "pregel-module_seeder_config",
      "linkType": "__type",
      "props": {
        "type": "pregel-module_seeder_config"
      },
      "meta": {}
    },
    {
      "fromType": "pregel-module_seeder_config",
      "toType": "scala_hlm_ik-spectrum-s3-realm",
      "linkType": "__type",
      "props": {
        "type": "scala_hlm_ik-spectrum-s3-realm"
      },
      "meta": {}
    },
    {
      "fromType": "pregel-module_spectrum-s3",
      "toType": "pregel-module_spectrum-s3_config",
      "linkType": "__type",
      "props": {
        "type": "pregel-module_spectrum-s3_config"
      },
      "meta": {}
    }
  ],
  "meta": {
    "next": "/api/v2/type-relationships?includeCount=false&limit=10&offset=10"
  }
}