The Panahashi Backend exposes a REST API versioned underDocumentation 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.
/api/v1. Every response is wrapped in a consistent ApiResponse envelope, and protected endpoints require a Firebase ID token passed as a Bearer token. This page covers the base URL, authentication, response formats, and a full index of available resources.
Base URL
/api/v1.
Authentication
Protected routes require a Firebase ID token in theAuthorization header:
Response format
All endpoints return JSON wrapped inApiResponse<T>:
ApiError:
Pagination
Paginated endpoints acceptpage (1-indexed) and pageSize query parameters and return:
Endpoint index
| Resource | Method | Path |
|---|---|---|
| Health | GET | /health |
| Bakeries | GET | /api/v1/bakeries |
| Bakeries | GET | /api/v1/bakeries/nearby |
| Bakeries | GET | /api/v1/bakeries/ |
| Bakeries | POST | /api/v1/bakeries |
| Bakeries | PATCH | /api/v1/bakeries/ |
| Bakeries | DELETE | /api/v1/bakeries/ |
| Bakeries | GET | /api/v1/bakeries/me |
| Bakeries | PATCH | /api/v1/bakeries/me |
| Bakeries | PATCH | /api/v1/bakeries/me/open |
| Products | GET | /api/v1/products |
| Products | GET | /api/v1/products/ |
| Products | POST | /api/v1/products |
| Products | PATCH | /api/v1/products/ |
| Products | PATCH | /api/v1/products//stock |
| Products | DELETE | /api/v1/products/ |
| Orders | POST | /api/v1/orders |
| Orders | GET | /api/v1/orders/me |
| Orders | GET | /api/v1/orders/ |
| Orders | PATCH | /api/v1/orders//status |
| Orders | POST | /api/v1/orders/verify-qr |
| Payments | POST | /api/v1/payments |
| Payments | GET | /api/v1/payments/order/ |
| Cart | GET | /api/v1/cart |
| Cart | POST | /api/v1/cart/items |
| Cart | PATCH | /api/v1/cart/items |
| Cart | DELETE | /api/v1/cart |
| Users | GET | /api/v1/users/me |
| Users | PATCH | /api/v1/users/me |
| Reviews | GET | /api/v1/reviews |
| Reviews | POST | /api/v1/reviews |
| Favorites | GET | /api/v1/favorites |
| Favorites | POST | /api/v1/favorites/ |
| Promotions | GET | /api/v1/promotions |
| Promotions | POST | /api/v1/promotions |
| Loyalty | GET | /api/v1/loyalty |
| Loyalty | POST | /api/v1/loyalty/redeem |
| Upload | POST | /api/v1/upload/product/ |
| Stats | GET | /api/v1/stats/bakery |
| Stats | GET | /api/v1/stats/admin |
| Search | GET | /api/v1/search |
Bakeries & Products
Manage bakery listings, product catalogs, and stock.
Orders & Payments
Place orders, process payments, and track order status.
Users & Engagement
User profiles, reviews, favorites, promotions, and loyalty.
Admin & Monitoring
Statistics dashboards and health monitoring.