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 bakeries resource exposes active bakeries registered on the platform. You can list all bakeries, search by proximity using latitude and longitude, or fetch a specific bakery by its ID. Listing and nearby search are public; fetching by ID requires a Firebase auth token.

GET /bakeries — fetchBakeries()

Returns all active bakeries. No authentication required.
This endpoint is public. No Authorization header is needed.

Response fields

id
string
Unique bakery identifier.
name
string
Display name of the bakery.
address
string
Street address of the bakery.
isOpen
boolean
Whether the bakery is currently accepting orders.
openTime
string
Opening time in HH:mm format.
closeTime
string
Closing time in HH:mm format.
rating
number
Average customer rating (1–5).

Example

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

const bakeries = await fetchBakeries();

GET /bakeries/nearby — fetchNearbyBakeries(lat, lng, radius)

Returns bakeries within a given radius of the supplied coordinates. No authentication required.
This endpoint is public. No Authorization header is needed.

Request parameters

lat
number
required
Latitude of the search origin point.
lng
number
required
Longitude of the search origin point.
radius
number
default:"5"
Search radius in kilometres. Defaults to 5.

Response fields

Returns an array of bakery objects with the same shape as fetchBakeries().

Example

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

const nearby = await fetchNearbyBakeries(4.711, -74.0721, 5);

GET /bakeries/:id — fetchBakeryById(id)

Returns a single bakery 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 bakery to fetch.

Response fields

Returns a single bakery object with the same shape as fetchBakeries().

Example

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

const bakery = await fetchBakeryById('bakery-id-123');

Build docs developers (and LLMs) love