Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt

Use this file to discover all available pages before exploring further.

The products resource exposes the items available for order at each bakery. Fetching a bakery’s catalog is public; retrieving a single product by ID requires a Firebase auth token.

GET /products?bakeryId= — fetchProductsByBakery(bakeryId)

Returns all available products for a given bakery. No authentication required.
This endpoint is public. No Authorization header is needed.

Request parameters

bakeryId
string
required
The ID of the bakery whose products you want to list.

Response fields

id
string
Unique product identifier.
name
string
Display name of the product.
price
number
Unit price in the local currency.
emoji
string
Emoji used to visually represent the product in the UI.
description
string
Short description of the product.
bakeryId
string
ID of the bakery this product belongs to.

Example

import { fetchProductsByBakery } from './services/api';

const products = await fetchProductsByBakery('bakery-id-123');

GET /products/:id — fetchProductById(id)

Returns a single product by its ID. Requires Firebase authentication.
This endpoint requires an Authorization: Bearer <token> header. The token is obtained from Firebase Auth and attached automatically by authHeaders().

Request parameters

id
string
required
The unique identifier of the product to fetch.

Response fields

Returns a single product object with the same shape as fetchProductsByBakery().

Example

import { fetchProductById } from './services/api';

const product = await fetchProductById('product-id-456');

Build docs developers (and LLMs) love