Function paprika_api::api::upload_recipe[][src]

pub async fn upload_recipe(
    token: &str,
    recipe: &mut Recipe
) -> Result<bool, Box<dyn Error>>
Expand description

Uploads a new recipe (when uid == “”) or updates an existing one (when uid exists in database already) #arguments

  • token a login token from login()
  • recipe a populated Recipe, with or without a uid (for updating or creating a new recipe)