1"""Routes of the Recipe API."""
2
3from wow._async._resource import AsyncResource
4from wow.models._common import Media
5from wow.models.recipe import Recipe
6
7__all__ = ["AsyncRecipes"]
8
9
[docs]
10class AsyncRecipes(AsyncResource):
11 """``client.recipes``: profession recipes. A profession's skill tiers list their recipes."""
12
13 __slots__ = ()
14
[docs]
15 async def get(self, recipe_id: int) -> Recipe:
16 """Get one recipe by id, with what it makes and its reagents."""
17 return await self._get("static", f"/data/wow/recipe/{recipe_id}", Recipe)
18