add logging and handle snippet deletes

This commit is contained in:
Travis Shears 2025-06-08 11:16:04 +02:00
parent c28c398a14
commit 38f130fcfd
8 changed files with 75 additions and 14 deletions

View file

@ -12,8 +12,8 @@ post {
body:json {
{
"title": "Test Snippet",
"slug": "test-snippet",
"title": "TEST from Bruno",
"slug": "bruno-test",
"markdown": "this is a test",
"tags": ["test"]
}

View file

@ -0,0 +1,23 @@
meta {
name: delete_snippet
type: http
seq: 5
}
delete {
url: {{host}}/api/snippet?id=952cdf1a-a2a8-4fe2-9354-953b240136ae
body: none
auth: none
}
params:query {
id: 952cdf1a-a2a8-4fe2-9354-953b240136ae
}
body:json {
{
"title": "Test Snippet",
"markdown": "## Cool Snippet\ndoes a cool thing",
"tags": ["git", "jj"]
}
}

View file

@ -1,3 +1,3 @@
vars {
host: http://localhost:3000
host: http://localhost:8080
}

View file

@ -5,13 +5,13 @@ meta {
}
get {
url: 192.168.1.157:29406/api/snippet?limit=4&skip=0
url: {{host}}/api/snippet?limit=100&skip=0
body: none
auth: none
}
params:query {
limit: 4
limit: 100
skip: 0
}