mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 03:18:09 +08:00
FEATURE: Webhooks.
This commit is contained in:

committed by
Guo Xiang Tan

parent
1f70fc9e11
commit
9ce61b4586
17
app/serializers/admin_web_hook_event_serializer.rb
Normal file
17
app/serializers/admin_web_hook_event_serializer.rb
Normal file
@ -0,0 +1,17 @@
|
||||
class AdminWebHookEventSerializer < ApplicationSerializer
|
||||
attributes :id,
|
||||
:web_hook_id,
|
||||
:request_url,
|
||||
:headers,
|
||||
:payload,
|
||||
:status,
|
||||
:response_headers,
|
||||
:response_body,
|
||||
:duration,
|
||||
:created_at
|
||||
|
||||
|
||||
def request_url
|
||||
object.web_hook.payload_url
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user