Excludes docs/ from deno fmt and deno lint so the Bruno files don't break formatting and lint checks in CI.
128 lines
1.7 KiB
Plaintext
128 lines
1.7 KiB
Plaintext
meta {
|
|
name: List a DID's webhook subscriptions
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
params:path {
|
|
did: did:plc:4m3kouplb7s7xozjd3whinvl
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{token}}
|
|
}
|
|
|
|
example {
|
|
name: 200 Response
|
|
description: All subscriptions owned by the caller.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
method: GET
|
|
mode: none
|
|
params:path: {
|
|
did:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 200
|
|
text: OK
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
[
|
|
{
|
|
"id": 0,
|
|
"did": "",
|
|
"method": "",
|
|
"url": "",
|
|
"verb": ""
|
|
}
|
|
]
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 401 Response
|
|
description: Missing or invalid bearer token.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/:did/webhooks
|
|
method: GET
|
|
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: GET
|
|
mode: none
|
|
params:path: {
|
|
did:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 403
|
|
text: Forbidden
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"error": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|