add get by slug and tag

This commit is contained in:
Travis Shears 2025-06-16 15:42:52 +02:00
parent e11719b40f
commit 6bbdb9c348
5 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,23 @@
meta {
name: get_snippet_by_slug
type: http
seq: 10
}
get {
url: {{host}}/api/snippet-by-slug?slug=netcat-over-ping
body: none
auth: none
}
params:query {
slug: netcat-over-ping
}
body:json {
{
"title": "Test Snippet",
"markdown": "## Cool Snippet\ndoes a cool thing",
"tags": ["git", "jj"]
}
}

View file

@ -0,0 +1,23 @@
meta {
name: get_tag
type: http
seq: 9
}
get {
url: {{host}}/api/tag?tag=git
body: none
auth: none
}
params:query {
tag: git
}
body:json {
{
"title": "Test Snippet",
"markdown": "## Cool Snippet\ndoes a cool thing",
"tags": ["git", "jj"]
}
}