docs(api): add Bruno collection for Jetstream API
Excludes docs/ from deno fmt and deno lint so the Bruno files don't break formatting and lint checks in CI.
This commit is contained in:
105
docs/Remanso Jetstream API/notes/Multi-DID feed.bru
Normal file
105
docs/Remanso Jetstream API/notes/Multi-DID feed.bru
Normal file
@@ -0,0 +1,105 @@
|
||||
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": ""
|
||||
}
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user