package
0.0.0-20240710072723-2d56da1696a4
Repository: https://github.com/and-rad/heyapple.git
Documentation: pkg.go.dev

# Functions

ChangeName creates a new username for the user identified by the current session.
DeleteRecipeInstructions removes the preparation instructions for the recipe identified by the {id} parameter along with all associated static files, like images and video.
DeleteUser deletes the user account identified by the current session.
Diary returns a JSON-formatted list of objects that summarize days from a user's diary.
DiaryEntries returns a JSON-formatted list of food that is recorded in a user's diary.
Food returns a JSON-formatted food item identified by {id}.
Foods returns a JSON-formatted list of food items stored in the database.
L10n returns all localized strings for the language {lang}.
NewFood creates a new food item and returns an empty food object with the new id on success.
NewRecipe creates a new named recipe and returns its ID on success.
NewUser creates a new user and sends out a registration notification on success.
Preferences returns the account and app settings for the session user.
Recipe returns a JSON-formatted recipe identified by {id}.
RecipeInstructions returns instructions on preparing the recipe identified by {id}.
RecipeOwner returns ownership information about the recipe identified by {id}.
Recipes returns a JSON-formatted list of recipes stored in the database.
SaveDiaryEntry edits food in the diary on the day identified by {date}.
SaveFood updates a food item in the database identified by the {id} parameter.
SaveIngredient adds the ingredient identified by {ing} to the recipe identified by {id}.
SaveListDone enables or disables items on the shopping list identified by {name}.
SavePreferences saves the account and app settings for the session user.
SaveRecipe updates a recipe in the database identified by the {id} parameter.
SaveRecipeInstructions updates the preparation instructions for the recipe identified by the {id} parameter.
ShoppingList returns a JSON-formatted list of shopping items generated from a user's diary.
ShoppingLists returns a JSON-formatted list with the names of a user's custom shopping lists.