Excludes docs/ from deno fmt and deno lint so the Bruno files don't break formatting and lint checks in CI.
106 lines
1.4 KiB
Plaintext
106 lines
1.4 KiB
Plaintext
meta {
|
|
name: Multi-DID feed
|
|
type: http
|
|
seq: 3
|
|
}
|
|
|
|
post {
|
|
url: {{baseUrl}}/notes/feed
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"dids": [],
|
|
"cursor": "",
|
|
"limit": 0
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 200 Response
|
|
description: A page of notes from the requested DIDs.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/notes/feed
|
|
method: POST
|
|
mode: json
|
|
body:json: {
|
|
{
|
|
"dids": [],
|
|
"cursor": "",
|
|
"limit": 0
|
|
}
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 200
|
|
text: OK
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"notes": [
|
|
{
|
|
"did": "",
|
|
"rkey": "",
|
|
"title": "",
|
|
"publishedAt": "",
|
|
"createdAt": "",
|
|
"language": ""
|
|
}
|
|
],
|
|
"cursor": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 400 Response
|
|
description: Malformed input.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/notes/feed
|
|
method: POST
|
|
mode: json
|
|
body:json: {
|
|
{
|
|
"dids": [],
|
|
"cursor": "",
|
|
"limit": 0
|
|
}
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 400
|
|
text: Bad Request
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"error": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|