-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from bbc/philipn-modify-webhooks-api
Modify the webhooks api
- Loading branch information
Showing
4 changed files
with
120 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"title": "Register Webhook", | ||
"description": "Register to receive updates via webhook", | ||
"type": "object", | ||
"required": [ | ||
"url", | ||
"events" | ||
], | ||
"properties": { | ||
"url": { | ||
"description": "The URL to which the API should make HTTP POST requests with event data", | ||
"type": "string" | ||
}, | ||
"api_key_name": { | ||
"description": "The HTTP header name that is added to the event POST with value 'api_key_value'", | ||
"type": "string" | ||
}, | ||
"api_key_value": { | ||
"description": "The value that the HTTP header 'api_key_name' will be set to", | ||
"type": "string" | ||
}, | ||
"events": { | ||
"description": "List of event types to receive", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters