edae7bbb21
Removed old split code and used the composition api to to re-write the import/export functionality of mealie.
156 lines
6.2 KiB
Python
156 lines
6.2 KiB
Python
# This Content is Auto Generated for Pytest
|
|
|
|
|
|
class AppRoutes:
|
|
def __init__(self) -> None:
|
|
self.prefix = '/api'
|
|
|
|
self.about_events = "/api/about/events"
|
|
self.about_events_notifications = "/api/about/events/notifications"
|
|
self.about_events_notifications_test = "/api/about/events/notifications/test"
|
|
self.about_recipes_defaults = "/api/about/recipes/defaults"
|
|
self.auth_refresh = "/api/auth/refresh"
|
|
self.auth_token = "/api/auth/token"
|
|
self.auth_token_long = "/api/auth/token/long"
|
|
self.backups_available = "/api/backups/available"
|
|
self.backups_export_database = "/api/backups/export/database"
|
|
self.backups_upload = "/api/backups/upload"
|
|
self.categories = "/api/categories"
|
|
self.categories_empty = "/api/categories/empty"
|
|
self.debug = "/api/debug"
|
|
self.debug_last_recipe_json = "/api/debug/last-recipe-json"
|
|
self.debug_log = "/api/debug/log"
|
|
self.debug_statistics = "/api/debug/statistics"
|
|
self.debug_version = "/api/debug/version"
|
|
self.groups = "/api/groups"
|
|
self.groups_self = "/api/groups/self"
|
|
self.meal_plans_all = "/api/meal-plans/all"
|
|
self.meal_plans_create = "/api/meal-plans/create"
|
|
self.meal_plans_this_week = "/api/meal-plans/this-week"
|
|
self.meal_plans_today = "/api/meal-plans/today"
|
|
self.meal_plans_today_image = "/api/meal-plans/today/image"
|
|
self.migrations = "/api/migrations"
|
|
self.recipes = "/api/recipes"
|
|
self.recipes_category = "/api/recipes/category"
|
|
self.recipes_create = "/api/recipes/create"
|
|
self.recipes_create_from_zip = "/api/recipes/create-from-zip"
|
|
self.recipes_create_url = "/api/recipes/create-url"
|
|
self.recipes_summary_uncategorized = "/api/recipes/summary/uncategorized"
|
|
self.recipes_summary_untagged = "/api/recipes/summary/untagged"
|
|
self.recipes_tag = "/api/recipes/tag"
|
|
self.recipes_test_scrape_url = "/api/recipes/test-scrape-url"
|
|
self.shopping_lists = "/api/shopping-lists"
|
|
self.site_settings = "/api/site-settings"
|
|
self.site_settings_custom_pages = "/api/site-settings/custom-pages"
|
|
self.site_settings_webhooks_test = "/api/site-settings/webhooks/test"
|
|
self.tags = "/api/tags"
|
|
self.tags_empty = "/api/tags/empty"
|
|
self.themes = "/api/themes"
|
|
self.themes_create = "/api/themes/create"
|
|
self.users = "/api/users"
|
|
self.users_api_tokens = "/api/users/api-tokens"
|
|
self.users_self = "/api/users/self"
|
|
self.users_sign_ups = "/api/users/sign-ups"
|
|
self.utils_download = "/api/utils/download"
|
|
|
|
def about_events_id(self, id):
|
|
return f"{self.prefix}/about/events/{id}"
|
|
|
|
def about_events_notifications_id(self, id):
|
|
return f"{self.prefix}/about/events/notifications/{id}"
|
|
|
|
def backups_file_name_delete(self, file_name):
|
|
return f"{self.prefix}/backups/{file_name}/delete"
|
|
|
|
def backups_file_name_download(self, file_name):
|
|
return f"{self.prefix}/backups/{file_name}/download"
|
|
|
|
def backups_file_name_import(self, file_name):
|
|
return f"{self.prefix}/backups/{file_name}/import"
|
|
|
|
def categories_category(self, category):
|
|
return f"{self.prefix}/categories/{category}"
|
|
|
|
def debug_log_num(self, num):
|
|
return f"{self.prefix}/debug/log/{num}"
|
|
|
|
def groups_id(self, id):
|
|
return f"{self.prefix}/groups/{id}"
|
|
|
|
def meal_plans_id(self, id):
|
|
return f"{self.prefix}/meal-plans/{id}"
|
|
|
|
def meal_plans_id_shopping_list(self, id):
|
|
return f"{self.prefix}/meal-plans/{id}/shopping-list"
|
|
|
|
def meal_plans_plan_id(self, plan_id):
|
|
return f"{self.prefix}/meal-plans/{plan_id}"
|
|
|
|
def media_recipes_recipe_slug_assets_file_name(self, recipe_slug, file_name):
|
|
return f"{self.prefix}/media/recipes/{recipe_slug}/assets/{file_name}"
|
|
|
|
def media_recipes_recipe_slug_images_file_name(self, recipe_slug, file_name):
|
|
return f"{self.prefix}/media/recipes/{recipe_slug}/images/{file_name}"
|
|
|
|
def migrations_import_type_file_name_delete(self, import_type, file_name):
|
|
return f"{self.prefix}/migrations/{import_type}/{file_name}/delete"
|
|
|
|
def migrations_import_type_file_name_import(self, import_type, file_name):
|
|
return f"{self.prefix}/migrations/{import_type}/{file_name}/import"
|
|
|
|
def migrations_import_type_upload(self, import_type):
|
|
return f"{self.prefix}/migrations/{import_type}/upload"
|
|
|
|
def recipes_recipe_slug(self, recipe_slug):
|
|
return f"{self.prefix}/recipes/{recipe_slug}"
|
|
|
|
def recipes_recipe_slug_assets(self, recipe_slug):
|
|
return f"{self.prefix}/recipes/{recipe_slug}/assets"
|
|
|
|
def recipes_recipe_slug_image(self, recipe_slug):
|
|
return f"{self.prefix}/recipes/{recipe_slug}/image"
|
|
|
|
def recipes_recipe_slug_zip(self, recipe_slug):
|
|
return f"{self.prefix}/recipes/{recipe_slug}/zip"
|
|
|
|
def recipes_slug_comments(self, slug):
|
|
return f"{self.prefix}/recipes/{slug}/comments"
|
|
|
|
def recipes_slug_comments_id(self, slug, id):
|
|
return f"{self.prefix}/recipes/{slug}/comments/{id}"
|
|
|
|
def shopping_lists_id(self, id):
|
|
return f"{self.prefix}/shopping-lists/{id}"
|
|
|
|
def site_settings_custom_pages_id(self, id):
|
|
return f"{self.prefix}/site-settings/custom-pages/{id}"
|
|
|
|
def tags_tag(self, tag):
|
|
return f"{self.prefix}/tags/{tag}"
|
|
|
|
def themes_id(self, id):
|
|
return f"{self.prefix}/themes/{id}"
|
|
|
|
def users_api_tokens_token_id(self, token_id):
|
|
return f"{self.prefix}/users/api-tokens/{token_id}"
|
|
|
|
def users_id(self, id):
|
|
return f"{self.prefix}/users/{id}"
|
|
|
|
def users_id_favorites(self, id):
|
|
return f"{self.prefix}/users/{id}/favorites"
|
|
|
|
def users_id_favorites_slug(self, id, slug):
|
|
return f"{self.prefix}/users/{id}/favorites/{slug}"
|
|
|
|
def users_id_image(self, id):
|
|
return f"{self.prefix}/users/{id}/image"
|
|
|
|
def users_id_password(self, id):
|
|
return f"{self.prefix}/users/{id}/password"
|
|
|
|
def users_id_reset_password(self, id):
|
|
return f"{self.prefix}/users/{id}/reset-password"
|
|
|
|
def users_sign_ups_token(self, token):
|
|
return f"{self.prefix}/users/sign-ups/{token}"
|