docbrown/app/views/api/v0/webhooks/index.json.jbuilder
Michael Kohl 02d23a0673
Refactor jbuilder (#7411)
* Refactor jbuilder for articles

* Refactor remaining jbuilder files

* Fix specs

* Remove content_truncated from response template JSON

Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2020-04-24 12:49:12 +02:00

7 lines
189 B
Ruby

json.array! @webhooks.each do |endpoint|
json.type_of "webhook_endpoint"
json.extract!(endpoint, :id, :source, :target_url, :events)
json.created_at endpoint.created_at.rfc3339
end