-
Notifications
You must be signed in to change notification settings - Fork 0
Create a Recipe
Kronprinz03 edited this page Jun 1, 2023
·
3 revisions
To create a recipe you have to send a Post Request and a JSON to the following address : http://localhost:3000/api/Recipe/create The name of the recipe and the author are required. For Author use the E-Mail of the author it could be change to Username in the Future but for it is the E-Mail Also the steps and ingredients are Arrays with Objects for Example an ingredient has always a name and the amount is till now not required but will be in the future.
Here is some example of an recipe-Json the values are the type of the variable :
{
"name" : "String",
"description": "String",
"ingredients": [{
"name" : "String",
"amount" : "String"
},
{
"name" : "String",
"amount" : "String"
}
],
"steps" : [{
"step" : "String",
"instruction" : "String"
}],
"author": "String"
}