docs: Add documentation for integration APIs (#2300)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user