Skip to content

Commit

Permalink
docs: update webhook docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 6, 2021
1 parent 27259f9 commit cb68a4a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions docs/api/WEBHOOKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Body:

```
{
"description": "an example webhook",
"events": [
{
"name": "contract_content_changed"
Expand Down Expand Up @@ -214,6 +215,7 @@ Body:

```
{
"description": "an example webhook",
"events": [
{
"name": "contract_content_changed"
Expand Down Expand Up @@ -244,7 +246,7 @@ Body:
```
{
"uuid": "dCGCl-Ba3PqEFJ_iE9mJkQ",
"description": "POST example.org",
"description": "an example webhook",
"enabled": true,
"request": {
"method": "POST",
Expand All @@ -266,7 +268,7 @@ Body:
"createdAt": "2021-09-01T00:07:21+00:00",
"_links": {
"self": {
"title": "POST example.org",
"title": "an example webhook",
"href": "http://example.org/webhooks/dCGCl-Ba3PqEFJ_iE9mJkQ"
},
"pb:execute": {
Expand Down Expand Up @@ -614,6 +616,7 @@ Body:

```
{
"description": "an example webhook",
"events": [
{
"name": "contract_content_changed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"Accept": "application/hal+json"
},
"body": {
"description": "an example webhook",
"events": [
{
"name": "contract_content_changed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"Accept": "application/hal+json"
},
"body": {
"description": "an example webhook",
"events": [
{
"name": "contract_content_changed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"Accept": "application/hal+json"
},
"body": {
"description": "an example webhook",
"events": [
{
"name": "contract_content_changed"
Expand Down Expand Up @@ -38,7 +39,7 @@
},
"body": {
"uuid": "dCGCl-Ba3PqEFJ_iE9mJkQ",
"description": "POST example.org",
"description": "an example webhook",
"enabled": true,
"request": {
"method": "POST",
Expand All @@ -60,7 +61,7 @@
"createdAt": "2021-09-01T00:07:21+00:00",
"_links": {
"self": {
"title": "POST example.org",
"title": "an example webhook",
"href": "http://example.org/webhooks/dCGCl-Ba3PqEFJ_iE9mJkQ"
},
"pb:execute": {
Expand Down
1 change: 1 addition & 0 deletions spec/integration/webhooks_documentation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

let(:webhook_hash) do
{
"description" => "an example webhook",
"events" => [{
"name" => "contract_content_changed"
}],
Expand Down

0 comments on commit cb68a4a

Please sign in to comment.