docs: Add documentation for integration APIs (#2300)

This commit is contained in:
Sojan Jose
2021-05-20 20:46:45 +05:30
committed by GitHub
parent c681e8a01b
commit 46356d0bf9
23 changed files with 421 additions and 22 deletions

View File

@@ -3,4 +3,8 @@ json.name resource.name
json.description resource.description
json.enabled resource.enabled?(@current_account)
json.button resource.action
json.hooks @current_account.hooks.where(app_id: resource.id)
json.hooks do
json.array! @current_account.hooks.where(app_id: resource.id) do |hook|
json.partial! 'api/v1/models/hook.json.jbuilder', resource: hook
end
end

View File

@@ -1,4 +1,7 @@
json.id resource.id
json.app resource.app.params.to_h
json.enabled resource.enabled?
json.app_id resource.app_id
json.status resource.enabled?
json.inbox_id resource.inbox_id
json.account_id resource.account_id
json.hook_type resource.hook_type
json.settings resource.settings