Skip to content

Apps, Actions, Blueprints и Types API

Эти endpoints описывают builder/registry layer: apps, actions, blueprints и shared types. Они используются для service integrations и переиспользуемых resource/action definitions.

Apps

GET /api/v2/apps

Возвращает apps.

Аргументы:

АргументГдеОписание
projectQueryОпциональный фильтр по project fullname.
workspaceQueryОпциональный фильтр по workspace fullname.

Тело запроса: нет.

Ответ: AppView[].

GET /api/v2/apps/:fullname

Возвращает app.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: AppView.

PUT /api/v2/apps/:fullname

Создает или обновляет app.

Тело запроса:

ПолеОбязательноеОписание
nameДаИмя app.
fullnameДаApp fullname.
projectДаProject fullname.
workspaceДаWorkspace fullname.
urlДаApp URL.
tagsНетTags.
labelsНетLabels.

Ответ: AppView.

DELETE /api/v2/apps/:fullname

Удаляет app.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: OperationResult.

Actions

GET /api/v2/actions

Возвращает actions.

Аргументы:

АргументГдеОписание
projectQueryОпциональный фильтр по project.
workspaceQueryОпциональный фильтр по workspace.

Тело запроса: нет.

Ответ: ActionView[].

GET /api/v2/actions/:fullname

Возвращает action.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: ActionView.

PUT /api/v2/actions/:fullname

Создает или обновляет action.

Тело запроса:

ПолеОбязательноеОписание
nameДаИмя action.
fullnameДаAction fullname.
projectДаProject fullname.
workspaceДаWorkspace fullname.
backendДаBackend definition для action.
valuesДаValues schema для action.
overridesДаПоля, которые action может переопределять.
tagsНетTags.
labelsНетLabels.
metaДаМетаданные action.

Ответ: ActionView.

DELETE /api/v2/actions/:fullname

Удаляет action.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: OperationResult.

Blueprints

GET /api/v2/blueprints

Возвращает blueprints.

Аргументы:

АргументГдеОписание
appQueryОпциональный фильтр по app fullname.
projectQueryОпциональный фильтр по project fullname.
workspaceQueryОпциональный фильтр по workspace fullname.

Тело запроса: нет.

Ответ: BlueprintView[].

GET /api/v2/blueprints/:fullname

Возвращает blueprint.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: BlueprintView.

PUT /api/v2/blueprints/:fullname

Создает или обновляет blueprint.

Тело запроса:

ПолеОбязательноеОписание
nameДаИмя blueprint.
fullnameДаBlueprint fullname.
appДаApp fullname.
projectДаProject fullname.
workspaceДаWorkspace fullname.
typeДаplain или external.
dataНетObject spec.
tagsНетTags.
labelsНетLabels.
meta.titleНетВидимое название.
meta.descriptionНетОписание.

Ответ: BlueprintView.

DELETE /api/v2/blueprints/:fullname

Удаляет blueprint.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: OperationResult.

Types

GET /api/v2/types

Возвращает shared types.

Аргументы:

АргументГдеОписание
projectQueryОпциональный фильтр по project.
workspaceQueryОпциональный фильтр по workspace.
statusQuerynot_tested, ready или broken.
palletQueryОпциональный фильтр по pallet.
kindQueryevent, call, transaction или timer.
dataSourceQueryОпциональный фильтр по data source.

Тело запроса: нет.

Ответ: SharedTypeView[].

GET /api/v2/types/:fullname

Возвращает shared type.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: SharedTypeView.

PUT /api/v2/types/:fullname

Создает или обновляет shared type.

Тело запроса:

ПолеОбязательноеОписание
nameДаИмя collection для shared type.
fullnameДаShared type fullname.
projectДаProject fullname.
workspaceДаWorkspace fullname.
schemasДаОбъект с именованными type schemas.
tagsНетTags.
labelsНетLabels.
metaНетОбъект метаданных.

Ответ: SharedTypeView.

DELETE /api/v2/types/:fullname

Удаляет shared type.

Аргументы: fullname в path.

Тело запроса: нет.

Ответ: OperationResult.