get snippets and get snippet

This commit is contained in:
Travis Shears 2025-06-09 22:19:46 +02:00
parent 70aea77dcc
commit 7bbee5b0fb
6 changed files with 42 additions and 6 deletions

View file

@ -5,13 +5,13 @@ meta {
}
delete {
url: {{host}}/api/snippet?id=952cdf1a-a2a8-4fe2-9354-953b240136ae
url: {{host}}/api/snippet?id=90d00a80-78c4-4bc9-a066-01c988599d05
body: none
auth: none
}
params:query {
id: 952cdf1a-a2a8-4fe2-9354-953b240136ae
id: 90d00a80-78c4-4bc9-a066-01c988599d05
}
body:json {

View file

@ -0,0 +1,23 @@
meta {
name: get_snippet
type: http
seq: 6
}
get {
url: {{host}}/api/snippet?id=aea69336-5116-49ac-ab52-bc221bdb7830
body: none
auth: none
}
params:query {
id: aea69336-5116-49ac-ab52-bc221bdb7830
}
body:json {
{
"title": "Test Snippet",
"markdown": "## Cool Snippet\ndoes a cool thing",
"tags": ["git", "jj"]
}
}

View file

@ -5,7 +5,7 @@ meta {
}
get {
url: {{host}}/api/snippet?limit=100&skip=0
url: {{host}}/api/snippets?limit=100&skip=0
body: none
auth: none
}