The Bakeries API lets customers browse active bakeries, bakers manage their own storefront, and admins administer the full catalog. All write operations require authentication; read endpoints for the public catalog are open.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi-Backend/llms.txt
Use this file to discover all available pages before exploring further.
Bakery object
Unique Firestore document ID.
Display name of the bakery.
Short description.
Street address.
Latitude coordinate.
Longitude coordinate.
Contact phone number.
Firebase Storage URL for the logo image.
Firebase Storage URL for the banner image.
Whether the bakery is currently accepting orders.
Opening time in HH:mm format, e.g. “07:00”.
Closing time in HH:mm format, e.g. “20:00”.
Average review rating (0–5), recalculated on each new review.
Total number of reviews.
One of
ACTIVE, INACTIVE, SUSPENDED.Firebase UID of the baker who owns this bakery.
Creation timestamp in epoch milliseconds.
GET /api/v1/bakeries
Returns all bakeries withstatus = ACTIVE.
Auth required: No
ApiResponse<List<Bakery>>
GET /api/v1/bakeries/nearby
Returns active bakeries within a given radius, sorted by distance. Auth required: NoUser’s latitude.
User’s longitude.
Search radius in kilometers. Default:
5.ApiResponse<List<{ bakery: Bakery, distanceKm: Double }>>
GET /api/v1/bakeries/all
Returns all bakeries includingINACTIVE and SUSPENDED ones.
Auth required: Yes — ADMIN
GET /api/v1/bakeries/
Returns a single bakery by ID. Auth required: Yes (any role)Bakery Firestore document ID.
GET /api/v1/bakeries/me
Returns the authenticated baker’s own bakery. Auth required: Yes — BAKERPATCH /api/v1/bakeries/me
Updates the authenticated baker’s bakery. All fields optional; only provided fields are changed. Bakers cannot change their ownstatus.
Auth required: Yes — BAKER
PATCH /api/v1/bakeries/me/open
Toggles the bakery open or closed. Validates that the current time (America/Bogota) falls within the bakery’sopenTime–closeTime window before allowing isOpen: true.
Auth required: Yes — BAKER
POST /api/v1/bakeries
Creates a new bakery. TheownerId must be a user with the BAKER role.
Auth required: Yes — ADMIN
Bakery name.
Short description.
Street address.
Latitude.
Longitude.
Contact phone.
Opening time, HH:mm.
Closing time, HH:mm.
Firebase UID of the BAKER owner.
PATCH /api/v1/bakeries/
Admin can update any field includingstatus.
Auth required: Yes — ADMIN
Bakery ID.
DELETE /api/v1/bakeries/
Deletes a bakery and clears thebakeryId from the owner’s user profile.
Auth required: Yes — ADMIN
Bakery ID.