add similar search to api

does a cool thing",
This commit is contained in:
Travis Shears 2026-03-12 09:29:09 +01:00
parent c7bca62df4
commit 2393faf9d0
Signed by: travisshears
GPG key ID: CB9BF1910F3F7469
7 changed files with 74 additions and 2 deletions

View file

@ -1,5 +1,5 @@
meta {
name: get_snippet
name: get
type: http
seq: 5
}

View file

@ -1,5 +1,5 @@
meta {
name: get_snippets
name: list
type: http
seq: 4
}

View 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"]
}
}