save recipes
This commit is contained in:
parent
3a887d8dbb
commit
380eb4cd21
18 changed files with 412 additions and 87 deletions
62
bruno/recipe-backend/createRecipe.bru
Normal file
62
bruno/recipe-backend/createRecipe.bru
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
meta {
|
||||
name: createRecipe
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:4000/recipe
|
||||
body: json
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImE0NDdlNDM0LTQyMWYtNDJiYS04MGRlLTM0ZDE1YzJmNWE2YyIsImlhdCI6MTc1ODk4Njk4MSwiZXhwIjoxNzU5MDczMzgxfQ.rYvECzhI3Tptse3yVjZvR9RXgs1gkwAt2_5-hpAXvB0
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"title": "Spaghetti mit Tomatensosse",
|
||||
"amount": "4",
|
||||
"amountDescription": "Personen",
|
||||
"instructions": [{
|
||||
"text": "Spaghetti nach Packungsanleitung zubereiten",
|
||||
"sortOrder": 1
|
||||
},
|
||||
{
|
||||
"text": "Tomatensosse erhitzen",
|
||||
"sortOrder": 2
|
||||
},
|
||||
{
|
||||
"text": "Vermischen, mit geriebenem Parmesan bestreuen und servieren",
|
||||
"sortOrder": 3
|
||||
}],
|
||||
"ingredientGroups": [
|
||||
{
|
||||
"sortOrder": 1,
|
||||
"ingredients":[
|
||||
{
|
||||
"name": "Spaghetti",
|
||||
"amount": 500,
|
||||
"unit": "g",
|
||||
"sortOrder": 1
|
||||
},
|
||||
{
|
||||
"name": "Tomatensosse",
|
||||
"amount": 1,
|
||||
"unit": "Glas",
|
||||
"sortOrder": 2
|
||||
},
|
||||
{
|
||||
"name": "Parmesan",
|
||||
"sortOrder": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
19
bruno/recipe-backend/getAllRecipes.bru
Normal file
19
bruno/recipe-backend/getAllRecipes.bru
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
meta {
|
||||
name: getAllRecipes
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:4000/recipe
|
||||
body: none
|
||||
auth: bearer
|
||||
}
|
||||
|
||||
auth:bearer {
|
||||
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImE0NDdlNDM0LTQyMWYtNDJiYS04MGRlLTM0ZDE1YzJmNWE2YyIsImlhdCI6MTc1ODk4Njk4MSwiZXhwIjoxNzU5MDczMzgxfQ.rYvECzhI3Tptse3yVjZvR9RXgs1gkwAt2_5-hpAXvB0
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue