add similar search to api
does a cool thing",
This commit is contained in:
parent
c7bca62df4
commit
2393faf9d0
7 changed files with 74 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
meta {
|
||||
name: get_snippet
|
||||
name: get
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
meta {
|
||||
name: get_snippets
|
||||
name: list
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
23
bruno/CodeSnippets/similar.bru
Normal file
23
bruno/CodeSnippets/similar.bru
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
meta {
|
||||
name: similar
|
||||
type: http
|
||||
seq: 10
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{host}}/api/similar?slug=rg-output
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:query {
|
||||
slug: rg-output
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title": "Test Snippet",
|
||||
"markdown": "## Cool Snippet\ndoes a cool thing",
|
||||
"tags": ["git", "jj"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue