Skip to main content

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.

The Favorites API lets customers save their preferred bakeries for quick access. The toggle endpoint adds the bakery if not already saved, or removes it if it is — a single call handles both actions.

GET /api/v1/favorites

Returns the authenticated customer’s favorited bakeries as full Bakery objects. Auth required: Yes — CUSTOMER
curl -H "Authorization: Bearer <token>" \
  http://localhost:8080/api/v1/favorites

POST /api/v1/favorites/

Toggles a bakery as a favorite. Adds it if not saved; removes it if already saved. Auth required: Yes — CUSTOMER
bakeryId
string
required
ID of the bakery to toggle.
curl -X POST \
  -H "Authorization: Bearer <token>" \
  http://localhost:8080/api/v1/favorites/bak001
Response:
{ "success": true, "data": { "isFavorite": true }, "message": "Panadería agregada a favoritos" }
isFavorite: true means the bakery is now saved; isFavorite: false means it was removed.

GET /api/v1/favorites//status

Checks if a specific bakery is in the customer’s favorites. Auth required: Yes — CUSTOMER
bakeryId
string
required
Bakery ID to check.
curl -H "Authorization: Bearer <token>" \
  http://localhost:8080/api/v1/favorites/bak001/status

DELETE /api/v1/favorites/

Explicitly removes a bakery from favorites. Auth required: Yes — CUSTOMER
bakeryId
string
required
Bakery ID to remove.
curl -X DELETE \
  -H "Authorization: Bearer <token>" \
  http://localhost:8080/api/v1/favorites/bak001

Build docs developers (and LLMs) love