get endpoint for listing snippets working
This commit is contained in:
parent
700710df56
commit
4acc4e2201
5 changed files with 57 additions and 10 deletions
24
bruno/CodeSnippets/get_snippets.bru
Normal file
24
bruno/CodeSnippets/get_snippets.bru
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
meta {
|
||||
name: get_snippets
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{host}}/api/snippet?limit=10&skip=10
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
params:query {
|
||||
limit: 10
|
||||
skip: 10
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title": "Test Snippet",
|
||||
"markdown": "## Cool Snippet\ndoes a cool thing",
|
||||
"tags": ["git", "jj"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue