Skip to content

katana_public_api_client.api.recipe.get_all_recipes

katana_public_api_client.api.recipe.get_all_recipes

Classes

Functions

asyncio(*, client, limit=50, page=1, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET, ingredient_variant_id=UNSET, product_variant_ids=UNSET, product_id=UNSET, recipe_row_id=UNSET) async

Get all recipes

Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • product_variant_ids (Union[Unset, str], default: UNSET ) –
  • product_id (Union[Unset, int], default: UNSET ) –
  • recipe_row_id (Union[Unset, int], default: UNSET ) –

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/recipe/get_all_recipes.py
async def asyncio(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    product_variant_ids: Unset | str = UNSET,
    product_id: Unset | int = UNSET,
    recipe_row_id: Unset | int = UNSET,
) -> ErrorResponse | RecipeListResponse | None:
    """Get all recipes

     Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):
        ingredient_variant_id (Union[Unset, int]):
        product_variant_ids (Union[Unset, str]):
        product_id (Union[Unset, int]):
        recipe_row_id (Union[Unset, int]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[ErrorResponse, RecipeListResponse]
    """

    return (
        await asyncio_detailed(
            client=client,
            limit=limit,
            page=page,
            created_at_min=created_at_min,
            created_at_max=created_at_max,
            updated_at_min=updated_at_min,
            updated_at_max=updated_at_max,
            ingredient_variant_id=ingredient_variant_id,
            product_variant_ids=product_variant_ids,
            product_id=product_id,
            recipe_row_id=recipe_row_id,
        )
    ).parsed

asyncio_detailed(*, client, limit=50, page=1, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET, ingredient_variant_id=UNSET, product_variant_ids=UNSET, product_id=UNSET, recipe_row_id=UNSET) async

Get all recipes

Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • product_variant_ids (Union[Unset, str], default: UNSET ) –
  • product_id (Union[Unset, int], default: UNSET ) –
  • recipe_row_id (Union[Unset, int], default: UNSET ) –

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/recipe/get_all_recipes.py
async def asyncio_detailed(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    product_variant_ids: Unset | str = UNSET,
    product_id: Unset | int = UNSET,
    recipe_row_id: Unset | int = UNSET,
) -> Response[ErrorResponse | RecipeListResponse]:
    """Get all recipes

     Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):
        ingredient_variant_id (Union[Unset, int]):
        product_variant_ids (Union[Unset, str]):
        product_id (Union[Unset, int]):
        recipe_row_id (Union[Unset, int]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[ErrorResponse, RecipeListResponse]]
    """

    kwargs = _get_kwargs(
        limit=limit,
        page=page,
        created_at_min=created_at_min,
        created_at_max=created_at_max,
        updated_at_min=updated_at_min,
        updated_at_max=updated_at_max,
        ingredient_variant_id=ingredient_variant_id,
        product_variant_ids=product_variant_ids,
        product_id=product_id,
        recipe_row_id=recipe_row_id,
    )

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync(*, client, limit=50, page=1, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET, ingredient_variant_id=UNSET, product_variant_ids=UNSET, product_id=UNSET, recipe_row_id=UNSET)

Get all recipes

Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • product_variant_ids (Union[Unset, str], default: UNSET ) –
  • product_id (Union[Unset, int], default: UNSET ) –
  • recipe_row_id (Union[Unset, int], default: UNSET ) –

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/recipe/get_all_recipes.py
def sync(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    product_variant_ids: Unset | str = UNSET,
    product_id: Unset | int = UNSET,
    recipe_row_id: Unset | int = UNSET,
) -> ErrorResponse | RecipeListResponse | None:
    """Get all recipes

     Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):
        ingredient_variant_id (Union[Unset, int]):
        product_variant_ids (Union[Unset, str]):
        product_id (Union[Unset, int]):
        recipe_row_id (Union[Unset, int]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Union[ErrorResponse, RecipeListResponse]
    """

    return sync_detailed(
        client=client,
        limit=limit,
        page=page,
        created_at_min=created_at_min,
        created_at_max=created_at_max,
        updated_at_min=updated_at_min,
        updated_at_max=updated_at_max,
        ingredient_variant_id=ingredient_variant_id,
        product_variant_ids=product_variant_ids,
        product_id=product_id,
        recipe_row_id=recipe_row_id,
    ).parsed

sync_detailed(*, client, limit=50, page=1, created_at_min=UNSET, created_at_max=UNSET, updated_at_min=UNSET, updated_at_max=UNSET, ingredient_variant_id=UNSET, product_variant_ids=UNSET, product_id=UNSET, recipe_row_id=UNSET)

Get all recipes

Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

Parameters:

  • limit (Union[Unset, int], default: 50 ) –

    Default: 50.

  • page (Union[Unset, int], default: 1 ) –

    Default: 1.

  • created_at_min (Union[Unset, datetime], default: UNSET ) –
  • created_at_max (Union[Unset, datetime], default: UNSET ) –
  • updated_at_min (Union[Unset, datetime], default: UNSET ) –
  • updated_at_max (Union[Unset, datetime], default: UNSET ) –
  • ingredient_variant_id (Union[Unset, int], default: UNSET ) –
  • product_variant_ids (Union[Unset, str], default: UNSET ) –
  • product_id (Union[Unset, int], default: UNSET ) –
  • recipe_row_id (Union[Unset, int], default: UNSET ) –

Raises:

  • UnexpectedStatus

    If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • TimeoutException

    If the request takes longer than Client.timeout.

Returns:

Source code in katana_public_api_client/api/recipe/get_all_recipes.py
def sync_detailed(
    *,
    client: AuthenticatedClient | Client,
    limit: Unset | int = 50,
    page: Unset | int = 1,
    created_at_min: Unset | datetime.datetime = UNSET,
    created_at_max: Unset | datetime.datetime = UNSET,
    updated_at_min: Unset | datetime.datetime = UNSET,
    updated_at_max: Unset | datetime.datetime = UNSET,
    ingredient_variant_id: Unset | int = UNSET,
    product_variant_ids: Unset | str = UNSET,
    product_id: Unset | int = UNSET,
    recipe_row_id: Unset | int = UNSET,
) -> Response[ErrorResponse | RecipeListResponse]:
    """Get all recipes

     Returns a list of all recipe rows. The recipes endpoint is deprecated in favor of BOM rows.

    Args:
        limit (Union[Unset, int]):  Default: 50.
        page (Union[Unset, int]):  Default: 1.
        created_at_min (Union[Unset, datetime.datetime]):
        created_at_max (Union[Unset, datetime.datetime]):
        updated_at_min (Union[Unset, datetime.datetime]):
        updated_at_max (Union[Unset, datetime.datetime]):
        ingredient_variant_id (Union[Unset, int]):
        product_variant_ids (Union[Unset, str]):
        product_id (Union[Unset, int]):
        recipe_row_id (Union[Unset, int]):

    Raises:
        errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
        httpx.TimeoutException: If the request takes longer than Client.timeout.


    Returns:
        Response[Union[ErrorResponse, RecipeListResponse]]
    """

    kwargs = _get_kwargs(
        limit=limit,
        page=page,
        created_at_min=created_at_min,
        created_at_max=created_at_max,
        updated_at_min=updated_at_min,
        updated_at_max=updated_at_max,
        ingredient_variant_id=ingredient_variant_id,
        product_variant_ids=product_variant_ids,
        product_id=product_id,
        recipe_row_id=recipe_row_id,
    )

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)