add logging and handle snippet deletes
This commit is contained in:
parent
c28c398a14
commit
38f130fcfd
8 changed files with 75 additions and 14 deletions
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
23
bruno/CodeSnippets/delete_snippet.bru
Normal file
23
bruno/CodeSnippets/delete_snippet.bru
Normal 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"]
|
||||
}
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
vars {
|
||||
host: http://localhost:3000
|
||||
host: http://localhost:8080
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue