Skip to content

feat: add get_template_content and get_user_recipes methods#272

Open
erikzimmermann wants to merge 1 commit into
miaucl:mainfrom
erikzimmermann:feat/get-user-recipes
Open

feat: add get_template_content and get_user_recipes methods#272
erikzimmermann wants to merge 1 commit into
miaucl:mainfrom
erikzimmermann:feat/get-user-recipes

Conversation

@erikzimmermann

Copy link
Copy Markdown

Thanks @miaucl for the great work on this library. I am missing an export endpoint for the recipes though. So here it is.

Summary

  • Adds get_template_content(content_uuid) to fetch full template details
    (including ingredients) from the /v2/bringtemplates/content/{uuid} endpoint
  • Adds get_user_recipes() as a convenience method that combines
    get_inspirations("mine") with get_template_content to return fully
    populated templates for all user-saved recipes (ad/POST entries excluded)
  • Merges summary-level metadata (name, image, link) into the detail response
    where the detail endpoint omits it
  • Adds tests and snapshot fixtures for both methods

Note: existing tests are currently affected by an aioresponses/aiohttp 3.13+
incompatibility — a fix is pending upstream in pnuckowski/aioresponses.

@github-actions github-actions Bot added the 🧪 testing Pull request that adds tests label Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧪 testing Pull request that adds tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant