openapi: 3.0.3
info:
  title: Cascad360 Content Plugin Overlay
  version: 1.0.9
paths:
  /v1/admin/content/entities:
    get:
      summary: Список сущностей контента
      x-permissions: [content.view]
      x-api-source: plugin
      x-plugin-name: content
    post:
      summary: Создание сущности
      x-permissions: [content.schema]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/entities/{machine_name}:
    get:
      summary: Детали сущности
      x-permissions: [content.view]
      x-api-source: plugin
      x-plugin-name: content
    put:
      summary: Обновление сущности
      x-permissions: [content.schema]
      x-api-source: plugin
      x-plugin-name: content
    delete:
      summary: Удаление сущности
      x-permissions: [content.schema]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/entities/{machine_name}/records:
    get:
      summary: Записи сущности
      x-permissions: [content.view]
      x-api-source: plugin
      x-plugin-name: content
    post:
      summary: Создание записи
      x-permissions: [content.edit]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/entities/{machine_name}/records/{record_id}:
    get:
      summary: Детали записи
      x-permissions: [content.view]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/schema/graph:
    get:
      summary: Граф схемы контента
      x-permissions: [content.view, content.schema]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/schema/export:
    get:
      summary: Экспорт схемы
      x-permissions: [content.schema]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/schema/import:
    post:
      summary: Импорт схемы
      x-permissions: [content.schema]
      x-api-source: plugin
      x-plugin-name: content
  /v1/admin/content/datasources:
    get:
      summary: Datasources контента
      x-permissions: [content.view]
      x-api-source: plugin
      x-plugin-name: content
