openapi: 3.0.3
info:
  title: Cascad360 Core Services Overlay
  version: 1.0.9
paths:
  /v1/admin/services/list:
    get:
      summary: Список зарегистрированных сервисов
      x-permissions: [service_view]
      x-api-source: core
  /v1/admin/services/{service_name}/status:
    get:
      summary: Статус сервиса
      x-permissions: [service_view]
      x-api-source: core
  /v1/admin/services/{service_name}/info:
    get:
      summary: Метаданные сервиса
      x-permissions: [service_view]
      x-api-source: core
  /v1/admin/services/{service_name}/metrics:
    get:
      summary: Метрики сервиса
      x-permissions: [service_view]
      x-api-source: core
  /v1/admin/services/{service_name}/restart:
    post:
      summary: Перезапуск сервиса
      x-permissions: [service_restart]
      x-api-source: core
  /v1/admin/services/{service_name}/start:
    post:
      summary: Запуск сервиса
      x-permissions: [service_restart]
      x-api-source: core
  /v1/admin/services/{service_name}/stop:
    post:
      summary: Остановка сервиса
      x-permissions: [service_restart]
      x-api-source: core
  /v1/admin/services/{service_name}/database:
    get:
      summary: Конфигурация БД сервиса
      x-permissions: [db_view, db_service_bind]
      x-api-source: core
    put:
      summary: Обновление привязки БД
      x-permissions: [db_service_bind]
      x-api-source: core
  /v1/admin/services/{service_name}/database/setup:
    post:
      summary: Создание БД для сервиса
      x-permissions: [db_service_bind]
      x-api-source: core
  /v1/admin/services/{service_name}/database/install:
    post:
      summary: Установка SQL-схемы
      x-permissions: [db_service_bind]
      x-api-source: core
  /v1/admin/databases:
    get:
      summary: Каталог баз данных
      x-permissions: [db_view, db_service_bind]
      x-api-source: core
  /v1/admin/datasources:
    get:
      summary: Список datasource
      x-permissions: [db_view, db_service_bind]
      x-api-source: core
