Excludes docs/ from deno fmt and deno lint so the Bruno files don't break formatting and lint checks in CI.
100 lines
1.3 KiB
Plaintext
100 lines
1.3 KiB
Plaintext
meta {
|
|
name: Public full-text fuzzy search
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/search?q=
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
params:query {
|
|
q:
|
|
~cursor:
|
|
~limit:
|
|
}
|
|
|
|
example {
|
|
name: 200 Response
|
|
description: A page of search hits.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/search
|
|
method: GET
|
|
mode: none
|
|
params:query: {
|
|
q:
|
|
~cursor:
|
|
~limit:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 200
|
|
text: OK
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"results": [
|
|
{
|
|
"did": "",
|
|
"rkey": "",
|
|
"title": "",
|
|
"snippet": "",
|
|
"score": 0,
|
|
"publishedAt": ""
|
|
}
|
|
],
|
|
"cursor": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
example {
|
|
name: 400 Response
|
|
description: Malformed input.
|
|
|
|
request: {
|
|
url: {{baseUrl}}/search
|
|
method: GET
|
|
mode: none
|
|
params:query: {
|
|
q:
|
|
~cursor:
|
|
~limit:
|
|
}
|
|
}
|
|
|
|
response: {
|
|
headers: {
|
|
Content-Type: application/json
|
|
}
|
|
|
|
status: {
|
|
code: 400
|
|
text: Bad Request
|
|
}
|
|
|
|
body: {
|
|
type: json
|
|
content: '''
|
|
{
|
|
"error": ""
|
|
}
|
|
'''
|
|
}
|
|
}
|
|
}
|