Excludes docs/ from deno fmt and deno lint so the Bruno files don't break formatting and lint checks in CI.
116 lines
1.5 KiB
Plaintext
116 lines
1.5 KiB
Plaintext
meta {
|
|
name: Delete every webhook subscription for the caller
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
delete {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
params:path {
|
|
did:
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{token}}
|
|
}
|
|
|
|
example {
|
|
name: 204 Response
|
|
description: All subscriptions deleted.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
method: DELETE
|
|
mode: none
|
|
params:path: {
|
|
did:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
status: {
|
|
code: 204
|
|
text: No Content
|
|
}
|
|
|
|
body: {
|
|
type: text
|
|
content: '''
|
|
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 401 Response
|
|
description: Missing or invalid bearer token.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
method: DELETE
|
|
mode: none
|
|
params:path: {
|
|
did:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 401
|
|
text: Unauthorized
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"error": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 403 Response
|
|
description: Token is valid but the caller is not authorized for this resource.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
method: DELETE
|
|
mode: none
|
|
params:path: {
|
|
did:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 403
|
|
text: Forbidden
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"error": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|