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