mealie/tests/utils/api_routes/__init__.py
2024-12-03 13:27:41 +00:00

561 lines
19 KiB
Python

# This Content is Auto Generated for Pytest
prefix = "/api"
admin_about = "/api/admin/about"
"""`/api/admin/about`"""
admin_about_check = "/api/admin/about/check"
"""`/api/admin/about/check`"""
admin_about_statistics = "/api/admin/about/statistics"
"""`/api/admin/about/statistics`"""
admin_backups = "/api/admin/backups"
"""`/api/admin/backups`"""
admin_backups_upload = "/api/admin/backups/upload"
"""`/api/admin/backups/upload`"""
admin_debug_openai = "/api/admin/debug/openai"
"""`/api/admin/debug/openai`"""
admin_email = "/api/admin/email"
"""`/api/admin/email`"""
admin_groups = "/api/admin/groups"
"""`/api/admin/groups`"""
admin_households = "/api/admin/households"
"""`/api/admin/households`"""
admin_maintenance = "/api/admin/maintenance"
"""`/api/admin/maintenance`"""
admin_maintenance_clean_images = "/api/admin/maintenance/clean/images"
"""`/api/admin/maintenance/clean/images`"""
admin_maintenance_clean_recipe_folders = "/api/admin/maintenance/clean/recipe-folders"
"""`/api/admin/maintenance/clean/recipe-folders`"""
admin_maintenance_clean_temp = "/api/admin/maintenance/clean/temp"
"""`/api/admin/maintenance/clean/temp`"""
admin_maintenance_storage = "/api/admin/maintenance/storage"
"""`/api/admin/maintenance/storage`"""
admin_users = "/api/admin/users"
"""`/api/admin/users`"""
admin_users_password_reset_token = "/api/admin/users/password-reset-token"
"""`/api/admin/users/password-reset-token`"""
admin_users_unlock = "/api/admin/users/unlock"
"""`/api/admin/users/unlock`"""
app_about = "/api/app/about"
"""`/api/app/about`"""
app_about_startup_info = "/api/app/about/startup-info"
"""`/api/app/about/startup-info`"""
app_about_theme = "/api/app/about/theme"
"""`/api/app/about/theme`"""
auth_logout = "/api/auth/logout"
"""`/api/auth/logout`"""
auth_oauth = "/api/auth/oauth"
"""`/api/auth/oauth`"""
auth_oauth_callback = "/api/auth/oauth/callback"
"""`/api/auth/oauth/callback`"""
auth_refresh = "/api/auth/refresh"
"""`/api/auth/refresh`"""
auth_token = "/api/auth/token"
"""`/api/auth/token`"""
comments = "/api/comments"
"""`/api/comments`"""
foods = "/api/foods"
"""`/api/foods`"""
foods_merge = "/api/foods/merge"
"""`/api/foods/merge`"""
groups_households = "/api/groups/households"
"""`/api/groups/households`"""
groups_labels = "/api/groups/labels"
"""`/api/groups/labels`"""
groups_members = "/api/groups/members"
"""`/api/groups/members`"""
groups_migrations = "/api/groups/migrations"
"""`/api/groups/migrations`"""
groups_preferences = "/api/groups/preferences"
"""`/api/groups/preferences`"""
groups_reports = "/api/groups/reports"
"""`/api/groups/reports`"""
groups_seeders_foods = "/api/groups/seeders/foods"
"""`/api/groups/seeders/foods`"""
groups_seeders_labels = "/api/groups/seeders/labels"
"""`/api/groups/seeders/labels`"""
groups_seeders_units = "/api/groups/seeders/units"
"""`/api/groups/seeders/units`"""
groups_self = "/api/groups/self"
"""`/api/groups/self`"""
groups_storage = "/api/groups/storage"
"""`/api/groups/storage`"""
households_cookbooks = "/api/households/cookbooks"
"""`/api/households/cookbooks`"""
households_events_notifications = "/api/households/events/notifications"
"""`/api/households/events/notifications`"""
households_invitations = "/api/households/invitations"
"""`/api/households/invitations`"""
households_invitations_email = "/api/households/invitations/email"
"""`/api/households/invitations/email`"""
households_mealplans = "/api/households/mealplans"
"""`/api/households/mealplans`"""
households_mealplans_random = "/api/households/mealplans/random"
"""`/api/households/mealplans/random`"""
households_mealplans_rules = "/api/households/mealplans/rules"
"""`/api/households/mealplans/rules`"""
households_mealplans_today = "/api/households/mealplans/today"
"""`/api/households/mealplans/today`"""
households_members = "/api/households/members"
"""`/api/households/members`"""
households_permissions = "/api/households/permissions"
"""`/api/households/permissions`"""
households_preferences = "/api/households/preferences"
"""`/api/households/preferences`"""
households_recipe_actions = "/api/households/recipe-actions"
"""`/api/households/recipe-actions`"""
households_self = "/api/households/self"
"""`/api/households/self`"""
households_shopping_items = "/api/households/shopping/items"
"""`/api/households/shopping/items`"""
households_shopping_items_create_bulk = "/api/households/shopping/items/create-bulk"
"""`/api/households/shopping/items/create-bulk`"""
households_shopping_lists = "/api/households/shopping/lists"
"""`/api/households/shopping/lists`"""
households_statistics = "/api/households/statistics"
"""`/api/households/statistics`"""
households_webhooks = "/api/households/webhooks"
"""`/api/households/webhooks`"""
households_webhooks_rerun = "/api/households/webhooks/rerun"
"""`/api/households/webhooks/rerun`"""
media_docker_validate_txt = "/api/media/docker/validate.txt"
"""`/api/media/docker/validate.txt`"""
organizers_categories = "/api/organizers/categories"
"""`/api/organizers/categories`"""
organizers_categories_empty = "/api/organizers/categories/empty"
"""`/api/organizers/categories/empty`"""
organizers_tags = "/api/organizers/tags"
"""`/api/organizers/tags`"""
organizers_tags_empty = "/api/organizers/tags/empty"
"""`/api/organizers/tags/empty`"""
organizers_tools = "/api/organizers/tools"
"""`/api/organizers/tools`"""
parser_ingredient = "/api/parser/ingredient"
"""`/api/parser/ingredient`"""
parser_ingredients = "/api/parser/ingredients"
"""`/api/parser/ingredients`"""
recipes = "/api/recipes"
"""`/api/recipes`"""
recipes_bulk_actions_categorize = "/api/recipes/bulk-actions/categorize"
"""`/api/recipes/bulk-actions/categorize`"""
recipes_bulk_actions_delete = "/api/recipes/bulk-actions/delete"
"""`/api/recipes/bulk-actions/delete`"""
recipes_bulk_actions_export = "/api/recipes/bulk-actions/export"
"""`/api/recipes/bulk-actions/export`"""
recipes_bulk_actions_export_download = "/api/recipes/bulk-actions/export/download"
"""`/api/recipes/bulk-actions/export/download`"""
recipes_bulk_actions_export_purge = "/api/recipes/bulk-actions/export/purge"
"""`/api/recipes/bulk-actions/export/purge`"""
recipes_bulk_actions_settings = "/api/recipes/bulk-actions/settings"
"""`/api/recipes/bulk-actions/settings`"""
recipes_bulk_actions_tag = "/api/recipes/bulk-actions/tag"
"""`/api/recipes/bulk-actions/tag`"""
recipes_create_html_or_json = "/api/recipes/create/html-or-json"
"""`/api/recipes/create/html-or-json`"""
recipes_create_image = "/api/recipes/create/image"
"""`/api/recipes/create/image`"""
recipes_create_url = "/api/recipes/create/url"
"""`/api/recipes/create/url`"""
recipes_create_url_bulk = "/api/recipes/create/url/bulk"
"""`/api/recipes/create/url/bulk`"""
recipes_create_zip = "/api/recipes/create/zip"
"""`/api/recipes/create/zip`"""
recipes_exports = "/api/recipes/exports"
"""`/api/recipes/exports`"""
recipes_suggestions = "/api/recipes/suggestions"
"""`/api/recipes/suggestions`"""
recipes_test_scrape_url = "/api/recipes/test-scrape-url"
"""`/api/recipes/test-scrape-url`"""
recipes_timeline_events = "/api/recipes/timeline/events"
"""`/api/recipes/timeline/events`"""
shared_recipes = "/api/shared/recipes"
"""`/api/shared/recipes`"""
units = "/api/units"
"""`/api/units`"""
units_merge = "/api/units/merge"
"""`/api/units/merge`"""
users = "/api/users"
"""`/api/users`"""
users_api_tokens = "/api/users/api-tokens"
"""`/api/users/api-tokens`"""
users_forgot_password = "/api/users/forgot-password"
"""`/api/users/forgot-password`"""
users_password = "/api/users/password"
"""`/api/users/password`"""
users_register = "/api/users/register"
"""`/api/users/register`"""
users_reset_password = "/api/users/reset-password"
"""`/api/users/reset-password`"""
users_self = "/api/users/self"
"""`/api/users/self`"""
users_self_favorites = "/api/users/self/favorites"
"""`/api/users/self/favorites`"""
users_self_ratings = "/api/users/self/ratings"
"""`/api/users/self/ratings`"""
utils_download = "/api/utils/download"
"""`/api/utils/download`"""
validators_group = "/api/validators/group"
"""`/api/validators/group`"""
validators_household = "/api/validators/household"
"""`/api/validators/household`"""
validators_recipe = "/api/validators/recipe"
"""`/api/validators/recipe`"""
validators_user_email = "/api/validators/user/email"
"""`/api/validators/user/email`"""
validators_user_name = "/api/validators/user/name"
"""`/api/validators/user/name`"""
def admin_backups_file_name(file_name):
"""`/api/admin/backups/{file_name}`"""
return f"{prefix}/admin/backups/{file_name}"
def admin_backups_file_name_restore(file_name):
"""`/api/admin/backups/{file_name}/restore`"""
return f"{prefix}/admin/backups/{file_name}/restore"
def admin_groups_item_id(item_id):
"""`/api/admin/groups/{item_id}`"""
return f"{prefix}/admin/groups/{item_id}"
def admin_households_item_id(item_id):
"""`/api/admin/households/{item_id}`"""
return f"{prefix}/admin/households/{item_id}"
def admin_users_item_id(item_id):
"""`/api/admin/users/{item_id}`"""
return f"{prefix}/admin/users/{item_id}"
def comments_item_id(item_id):
"""`/api/comments/{item_id}`"""
return f"{prefix}/comments/{item_id}"
def explore_groups_group_slug_cookbooks(group_slug):
"""`/api/explore/groups/{group_slug}/cookbooks`"""
return f"{prefix}/explore/groups/{group_slug}/cookbooks"
def explore_groups_group_slug_cookbooks_item_id(group_slug, item_id):
"""`/api/explore/groups/{group_slug}/cookbooks/{item_id}`"""
return f"{prefix}/explore/groups/{group_slug}/cookbooks/{item_id}"
def explore_groups_group_slug_foods(group_slug):
"""`/api/explore/groups/{group_slug}/foods`"""
return f"{prefix}/explore/groups/{group_slug}/foods"
def explore_groups_group_slug_foods_item_id(group_slug, item_id):
"""`/api/explore/groups/{group_slug}/foods/{item_id}`"""
return f"{prefix}/explore/groups/{group_slug}/foods/{item_id}"
def explore_groups_group_slug_households(group_slug):
"""`/api/explore/groups/{group_slug}/households`"""
return f"{prefix}/explore/groups/{group_slug}/households"
def explore_groups_group_slug_households_household_slug(group_slug, household_slug):
"""`/api/explore/groups/{group_slug}/households/{household_slug}`"""
return f"{prefix}/explore/groups/{group_slug}/households/{household_slug}"
def explore_groups_group_slug_organizers_categories(group_slug):
"""`/api/explore/groups/{group_slug}/organizers/categories`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/categories"
def explore_groups_group_slug_organizers_categories_item_id(group_slug, item_id):
"""`/api/explore/groups/{group_slug}/organizers/categories/{item_id}`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/categories/{item_id}"
def explore_groups_group_slug_organizers_tags(group_slug):
"""`/api/explore/groups/{group_slug}/organizers/tags`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/tags"
def explore_groups_group_slug_organizers_tags_item_id(group_slug, item_id):
"""`/api/explore/groups/{group_slug}/organizers/tags/{item_id}`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/tags/{item_id}"
def explore_groups_group_slug_organizers_tools(group_slug):
"""`/api/explore/groups/{group_slug}/organizers/tools`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/tools"
def explore_groups_group_slug_organizers_tools_item_id(group_slug, item_id):
"""`/api/explore/groups/{group_slug}/organizers/tools/{item_id}`"""
return f"{prefix}/explore/groups/{group_slug}/organizers/tools/{item_id}"
def explore_groups_group_slug_recipes(group_slug):
"""`/api/explore/groups/{group_slug}/recipes`"""
return f"{prefix}/explore/groups/{group_slug}/recipes"
def explore_groups_group_slug_recipes_recipe_slug(group_slug, recipe_slug):
"""`/api/explore/groups/{group_slug}/recipes/{recipe_slug}`"""
return f"{prefix}/explore/groups/{group_slug}/recipes/{recipe_slug}"
def explore_groups_group_slug_recipes_suggestions(group_slug):
"""`/api/explore/groups/{group_slug}/recipes/suggestions`"""
return f"{prefix}/explore/groups/{group_slug}/recipes/suggestions"
def foods_item_id(item_id):
"""`/api/foods/{item_id}`"""
return f"{prefix}/foods/{item_id}"
def groups_households_household_slug(household_slug):
"""`/api/groups/households/{household_slug}`"""
return f"{prefix}/groups/households/{household_slug}"
def groups_labels_item_id(item_id):
"""`/api/groups/labels/{item_id}`"""
return f"{prefix}/groups/labels/{item_id}"
def groups_members_username_or_id(username_or_id):
"""`/api/groups/members/{username_or_id}`"""
return f"{prefix}/groups/members/{username_or_id}"
def groups_reports_item_id(item_id):
"""`/api/groups/reports/{item_id}`"""
return f"{prefix}/groups/reports/{item_id}"
def households_cookbooks_item_id(item_id):
"""`/api/households/cookbooks/{item_id}`"""
return f"{prefix}/households/cookbooks/{item_id}"
def households_events_notifications_item_id(item_id):
"""`/api/households/events/notifications/{item_id}`"""
return f"{prefix}/households/events/notifications/{item_id}"
def households_events_notifications_item_id_test(item_id):
"""`/api/households/events/notifications/{item_id}/test`"""
return f"{prefix}/households/events/notifications/{item_id}/test"
def households_mealplans_item_id(item_id):
"""`/api/households/mealplans/{item_id}`"""
return f"{prefix}/households/mealplans/{item_id}"
def households_mealplans_rules_item_id(item_id):
"""`/api/households/mealplans/rules/{item_id}`"""
return f"{prefix}/households/mealplans/rules/{item_id}"
def households_recipe_actions_item_id(item_id):
"""`/api/households/recipe-actions/{item_id}`"""
return f"{prefix}/households/recipe-actions/{item_id}"
def households_recipe_actions_item_id_trigger_recipe_slug(item_id, recipe_slug):
"""`/api/households/recipe-actions/{item_id}/trigger/{recipe_slug}`"""
return f"{prefix}/households/recipe-actions/{item_id}/trigger/{recipe_slug}"
def households_shopping_items_item_id(item_id):
"""`/api/households/shopping/items/{item_id}`"""
return f"{prefix}/households/shopping/items/{item_id}"
def households_shopping_lists_item_id(item_id):
"""`/api/households/shopping/lists/{item_id}`"""
return f"{prefix}/households/shopping/lists/{item_id}"
def households_shopping_lists_item_id_label_settings(item_id):
"""`/api/households/shopping/lists/{item_id}/label-settings`"""
return f"{prefix}/households/shopping/lists/{item_id}/label-settings"
def households_shopping_lists_item_id_recipe_recipe_id(item_id, recipe_id):
"""`/api/households/shopping/lists/{item_id}/recipe/{recipe_id}`"""
return f"{prefix}/households/shopping/lists/{item_id}/recipe/{recipe_id}"
def households_shopping_lists_item_id_recipe_recipe_id_delete(item_id, recipe_id):
"""`/api/households/shopping/lists/{item_id}/recipe/{recipe_id}/delete`"""
return f"{prefix}/households/shopping/lists/{item_id}/recipe/{recipe_id}/delete"
def households_webhooks_item_id(item_id):
"""`/api/households/webhooks/{item_id}`"""
return f"{prefix}/households/webhooks/{item_id}"
def households_webhooks_item_id_test(item_id):
"""`/api/households/webhooks/{item_id}/test`"""
return f"{prefix}/households/webhooks/{item_id}/test"
def media_recipes_recipe_id_assets_file_name(recipe_id, file_name):
"""`/api/media/recipes/{recipe_id}/assets/{file_name}`"""
return f"{prefix}/media/recipes/{recipe_id}/assets/{file_name}"
def media_recipes_recipe_id_images_file_name(recipe_id, file_name):
"""`/api/media/recipes/{recipe_id}/images/{file_name}`"""
return f"{prefix}/media/recipes/{recipe_id}/images/{file_name}"
def media_recipes_recipe_id_images_timeline_timeline_event_id_file_name(recipe_id, timeline_event_id, file_name):
"""`/api/media/recipes/{recipe_id}/images/timeline/{timeline_event_id}/{file_name}`"""
return f"{prefix}/media/recipes/{recipe_id}/images/timeline/{timeline_event_id}/{file_name}"
def media_users_user_id_file_name(user_id, file_name):
"""`/api/media/users/{user_id}/{file_name}`"""
return f"{prefix}/media/users/{user_id}/{file_name}"
def organizers_categories_item_id(item_id):
"""`/api/organizers/categories/{item_id}`"""
return f"{prefix}/organizers/categories/{item_id}"
def organizers_categories_slug_category_slug(category_slug):
"""`/api/organizers/categories/slug/{category_slug}`"""
return f"{prefix}/organizers/categories/slug/{category_slug}"
def organizers_tags_item_id(item_id):
"""`/api/organizers/tags/{item_id}`"""
return f"{prefix}/organizers/tags/{item_id}"
def organizers_tags_slug_tag_slug(tag_slug):
"""`/api/organizers/tags/slug/{tag_slug}`"""
return f"{prefix}/organizers/tags/slug/{tag_slug}"
def organizers_tools_item_id(item_id):
"""`/api/organizers/tools/{item_id}`"""
return f"{prefix}/organizers/tools/{item_id}"
def organizers_tools_slug_tool_slug(tool_slug):
"""`/api/organizers/tools/slug/{tool_slug}`"""
return f"{prefix}/organizers/tools/slug/{tool_slug}"
def recipes_shared_token_id(token_id):
"""`/api/recipes/shared/{token_id}`"""
return f"{prefix}/recipes/shared/{token_id}"
def recipes_slug(slug):
"""`/api/recipes/{slug}`"""
return f"{prefix}/recipes/{slug}"
def recipes_slug_assets(slug):
"""`/api/recipes/{slug}/assets`"""
return f"{prefix}/recipes/{slug}/assets"
def recipes_slug_comments(slug):
"""`/api/recipes/{slug}/comments`"""
return f"{prefix}/recipes/{slug}/comments"
def recipes_slug_duplicate(slug):
"""`/api/recipes/{slug}/duplicate`"""
return f"{prefix}/recipes/{slug}/duplicate"
def recipes_slug_exports(slug):
"""`/api/recipes/{slug}/exports`"""
return f"{prefix}/recipes/{slug}/exports"
def recipes_slug_exports_zip(slug):
"""`/api/recipes/{slug}/exports/zip`"""
return f"{prefix}/recipes/{slug}/exports/zip"
def recipes_slug_image(slug):
"""`/api/recipes/{slug}/image`"""
return f"{prefix}/recipes/{slug}/image"
def recipes_slug_last_made(slug):
"""`/api/recipes/{slug}/last-made`"""
return f"{prefix}/recipes/{slug}/last-made"
def recipes_timeline_events_item_id(item_id):
"""`/api/recipes/timeline/events/{item_id}`"""
return f"{prefix}/recipes/timeline/events/{item_id}"
def recipes_timeline_events_item_id_image(item_id):
"""`/api/recipes/timeline/events/{item_id}/image`"""
return f"{prefix}/recipes/timeline/events/{item_id}/image"
def shared_recipes_item_id(item_id):
"""`/api/shared/recipes/{item_id}`"""
return f"{prefix}/shared/recipes/{item_id}"
def units_item_id(item_id):
"""`/api/units/{item_id}`"""
return f"{prefix}/units/{item_id}"
def users_api_tokens_token_id(token_id):
"""`/api/users/api-tokens/{token_id}`"""
return f"{prefix}/users/api-tokens/{token_id}"
def users_id_favorites(id):
"""`/api/users/{id}/favorites`"""
return f"{prefix}/users/{id}/favorites"
def users_id_favorites_slug(id, slug):
"""`/api/users/{id}/favorites/{slug}`"""
return f"{prefix}/users/{id}/favorites/{slug}"
def users_id_image(id):
"""`/api/users/{id}/image`"""
return f"{prefix}/users/{id}/image"
def users_id_ratings(id):
"""`/api/users/{id}/ratings`"""
return f"{prefix}/users/{id}/ratings"
def users_id_ratings_slug(id, slug):
"""`/api/users/{id}/ratings/{slug}`"""
return f"{prefix}/users/{id}/ratings/{slug}"
def users_item_id(item_id):
"""`/api/users/{item_id}`"""
return f"{prefix}/users/{item_id}"
def users_self_ratings_recipe_id(recipe_id):
"""`/api/users/self/ratings/{recipe_id}`"""
return f"{prefix}/users/self/ratings/{recipe_id}"