# HTTP routing and API inventory `main/tasksnest/urls.py` mounts Django admin, OAuth authorization/metadata, `/api/v1/`, and the planner, food, recipes, groceries, Home Assistant, stress and dreams browser URLconfs. The browser routes are in each app’s `urls.py`; methods and CSRF/session handling are specified by their views. This table lists all direct `/api/v1/` registrations from `main/food/api_urls.py` as of 2026-11-04. A path may support more than one method; inspect the view’s method guard and endpoint tests for the exact contract. | Path after `/api/v1/` | View | | --- | --- | | `auth/whoami/` | `api.whoami` | | `stress/` | `stress_api.collection` | | `stress//` | `stress_api.item` | | `dreams/` | `dream_api.collection` | | `dreams//` | `dream_api.item` | | `schema/` | `api_schema.schema` | | `food/today/` | `api.today` | | `food/products/` | `api.products` | | `food/products/lookup/` | `api.product_lookup` | | `food/products/create/` | `api.product_create` | | `food/products/import/` | `api.product_import` | | `food/log/` | `api.log_create` | | `food/log//` | `api.log_item` | | `food/log//attachments/` | `api.attachment_create` | | `food/attachments//file/` | `api.attachment_file` | | `food/attachments//` | `api.attachment_delete` | | `kitchen/items/` | `api.inventory_collection` | | `housekeeping/search/` | `housekeeping.search` | | `housekeeping/scan/` | `housekeeping.scan` | | `housekeeping/preview/` | `housekeeping.preview` | | `housekeeping/apply/` | `housekeeping.apply` | | `housekeeping/history/` | `housekeeping.history` | | `nutrition/preview/` | `nutrition_api.preview` | | `nutrition/commit/` | `nutrition_api.commit` | | `nutrition/ingredients/` | `nutrition_api.ingredients` | | `nutrition/ingredients//` | `nutrition_api.ingredient_correct` | | `nutrition/sources/` | `nutrition_api.sources` | | `nutrition/sources//` | `nutrition_api.source_item` | | `nutrition/suggestion-exclusions/` | `nutrition_api.suggestion_exclusion` | | `nutrition/recipe-feedback/` | `nutrition_api.recipe_feedback` | | `nutrition/recipe-reviews/` | `nutrition_api.recipe_reviews` | | `nutrition/find-meals/` | `nutrition_api.find_meals` | | `dietary-preferences/` | `dietary_api.collection` | | `dietary-preferences/audit/` | `dietary_api.history` | | `dietary-preferences/evaluate-recipe/` | `dietary_api.evaluate_recipe` | | `dietary-preferences//` | `dietary_api.item` | | `dietary-preferences//archive/` | `dietary_api.archive` | | `dietary-preferences//exceptions/` | `dietary_api.exception_collection` | | `dietary-preferences//exceptions//` | `dietary_api.exception_item` | | `kitchen/import-groceries/` | `api.inventory_import_groceries` | | `kitchen/bulk-update/` | `api.inventory_bulk_update` | | `kitchen/bulk-delete/` | `api.inventory_bulk_delete` | | `kitchen/items//` | `api.inventory_item` | | `kitchen/stock/` | `api.inventory_stock` | | `kitchen/consumption/preview/` | `api.inventory_preview` | | `kitchen/consumption/` | `api.inventory_consume` | | `kitchen/consumption//undo/` | `api.inventory_undo` | | `hydration/daily/` | `api.hydration_daily` | | `hydration/manual/` | `api.hydration_log` | | `hydration/manual//` | `api.hydration_manual_entry` | | `hydration/settings/` | `api.hydration_settings` | | `groceries/` | `grocery_api.collection` | | `groceries//` | `grocery_api.item` | | `groceries/recipe//` | `grocery_api.recipe_import` | | `recipes/` | `recipe_api.recipe_search` | | `recipes/cook-later/` | `recipe_api.recipe_cook_later_collection` | | `recipes/cook-later//` | `recipe_api.recipe_cook_later_item` | | `recipes/create/` | `recipe_api.recipe_create` | | `recipes/compositions/preview/` | `recipe_api.recipe_composition_preview` | | `recipes/compositions/` | `recipe_api.recipe_composition_create` | | `recipes//` | `recipe_api.recipe_item` | | `recipes//links/` | `recipe_api.recipe_links` | | `recipes//links//` | `recipe_api.recipe_link_item` | | `recipes//variations/` | `recipe_api.recipe_variation` | | `recipes//ingredients/` | `recipe_api.recipe_ingredient_create` | | `recipes//ingredients//` | `recipe_api.recipe_ingredient_item` | | `recipes//subrecipes/` | `recipe_api.recipe_subrecipe_create` | | `recipes//subrecipes//` | `recipe_api.recipe_subrecipe_delete` | | `recipes//stock/preview/` | `recipe_api.recipe_stock_preview` | | `recipes//stock/confirm/` | `recipe_api.recipe_stock_confirm` | | `recipes/stock-use//undo/` | `recipe_api.recipe_stock_undo` | | `recipes//log/` | `recipe_api.recipe_log` | Total direct API paths: **72**. No API v2 route is registered. `/api/v1/schema/` is the server’s schema endpoint; it is the first place to check request and response definitions. See [authentication](authentication.md) and [MCP](../mcp/overview.md).