Methods
(async, inner) addPrivateRecipe(recipe)
Addes a private recipe
Parameters:
| Name | Type | Description |
|---|---|---|
recipe |
JSON | the JSON containing all the information about the recipe |
- Source:
(async, inner) deletePrivateRecipe(id)
Deletes the specified recipe
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | the id of the recipe |
- Source:
(async, inner) getPrivateRecipe(recipeId)
Gets the requested private recipe
Parameters:
| Name | Type | Description |
|---|---|---|
recipeId |
String |
- Source:
Returns:
the requested recipe data
(async, inner) getPrivateRecipes()
This is a function that GETs all private recipes that belong to the current user. It will return empty
array if current user have no private recipe.
- Source:
Returns:
user's private recipes
(async, inner) updatePrivateRecipe(id, new_recipe)
Updated the specified recipe
Parameters:
| Name | Type | Description |
|---|---|---|
id |
String | id of recipe that need to update |
new_recipe |
JSON | the JSON of the new recipe |
- Source: