The sedes API manages Don Mamino’s physical bakery locations. Each sede has a name, address, phone number, and contact email. Users and products are assigned to a sede, making it a foundational resource in the API. GET endpoints are publicly accessible; write operations require a valid JWT Bearer token.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/luisllatas-dev/Proyecto_Pasteleria_DonMamino/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/sedes
Retrieve a list of all sedes. Auth required: NoResponse fields
Returns an array of sede objects.Unique identifier of the sede.
Name of the location (e.g.,
"Sede Central", "Sucursal Miraflores").Physical street address of the sede.
Contact phone number of the sede (up to 15 characters).
Contact email address for the sede. Must be unique across all sedes.
Example
curl
GET /api/sedes/:id
Retrieve a single sede by its ID. Auth required: NoPath parameters
The
id_sede of the sede to retrieve.Response fields
Returns a single sede object with the same fields as the list endpoint above.Example
curl
Error responses
| Status | Description |
|---|---|
404 | No sede found with the given ID. Response body: { "message": "Sede no encontrada" } |
500 | Internal server error. |
POST /api/sedes
Create a new sede. Auth required: YesRequest body
Name of the new location.
Physical address of the new location.
Contact phone number. Maximum 15 characters.
Contact email address. Must be unique across all sedes.
Response fields
The auto-generated
id_sede of the newly created sede.Confirmation message. Returns
"Sede creada exitosamente".Example
PUT /api/sedes/:id
Update an existing sede by its ID. Auth required: YesPath parameters
The
id_sede of the sede to update.Request body
Provide the full updated sede object — all columns are overwritten.Updated name of the location.
Updated physical address.
Updated contact phone number. Maximum 15 characters.
Updated contact email. Must remain unique across all sedes.
Response fields
Confirmation message. Returns
"Sede actualizada exitosamente".Example
curl
Error responses
| Status | Description |
|---|---|
404 | No sede found with the given ID. Response body: { "message": "Sede no encontrada" } |
500 | Internal server error. |
DELETE /api/sedes/:id
Delete a sede by its ID. This action is permanent and will cascade to any associated products and orders. Auth required: YesPath parameters
The
id_sede of the sede to delete.Response fields
Confirmation message. Returns
"Sede eliminada exitosamente".Example
curl
Error responses
| Status | Description |
|---|---|
404 | No sede found with the given ID. Response body: { "message": "Sede no encontrada" } |
500 | Internal server error. |