TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/nelrondon/backend-proyecto-estructuras/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/properties/status/:status endpoint returns all property listings that match a specific availability status. No authentication is required. Before the value is validated, the server automatically capitalizes the first letter of the :status parameter using a capitalize() utility, so inputs like venta, VENTA, and Venta all resolve to the same value. If the status is not one of the three valid options after normalization, the server returns a 422 validation error. If no properties with that status exist, a 500 error is returned.
The response envelope key for this endpoint is
propierties (note the spelling), which matches the variable name used in the controller source code. Clients should read the array from response.propierties.Endpoint
Authentication
None required. This is a public endpoint.Path Parameters
The availability status to filter by. Must be one of the following values (case-insensitive, automatically capitalized by the server):
Venta— Properties listed for saleAlquiler— Properties listed for rentAmbas— Properties available for both sale and rent
Status Values Explained
| Value | Meaning |
|---|---|
Venta | The property is listed for sale. |
Alquiler | The property is listed for rent. |
Ambas | The property is available for both sale and rent simultaneously. |
Input Normalization
The raw:status path segment is passed through a capitalize() utility before schema validation. This means inputs such as venta, VENTA, or vEnTa are all normalized to Venta before being checked against the allowed enum values.
Response
On success, the endpoint returns a JSON object with apropierties key containing an array of matching property records.
Response Fields
Array of property objects whose
status column matches the requested value. Each element contains the full property record.Error Responses
| Status | Body | Description |
|---|---|---|
422 | { "error": "<validation message>" } | The supplied status is not one of the three valid enum values after capitalization. The Zod schema provides a message indicating the invalid value and the permitted options. |
500 | { "error": "No existen propiedades con este Estado" } | The status is valid but no properties with that status exist in the database. |