Skip to main content

Documentation 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.

The GET /api/properties/:id endpoint retrieves a single property listing by its unique UUID identifier. No authentication is required. The response wraps the property data inside a property key. If no record matching the provided id exists in the properties table, the server responds with a 500 error containing a descriptive message.

Endpoint

GET /api/properties/:id

Authentication

None required. This is a public endpoint.

Path Parameters

id
string
required
The UUID of the property to retrieve. Must exactly match a record in the properties table. UUIDs are generated server-side when a property is created with POST /api/properties.

Response

On success, the endpoint returns a JSON object with a property key containing the full property record.

Response Fields

property
object
required
The full property object for the requested listing.

Error Responses

StatusBodyDescription
500{ "error": "Propiedad no encontrada en la base de datos" }No property record with the given id exists.

Example

Request

curl --request GET \
  --url https://your-api-domain.com/api/properties/a1b2c3d4-e5f6-7890-abcd-ef1234567890

Success Response

{
  "property": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "title": "Apartamento moderno en Las Mercedes",
    "description": "Apartamento de un dormitorio con vista a la ciudad.",
    "status": "Alquiler",
    "property_type": "Apartamento",
    "address": "Av. Las Mercedes, Torre Cristal, Piso 8",
    "city": "Caracas",
    "state": "Distrito Capital",
    "price": 800,
    "bedrooms": 1,
    "bathrooms": 1,
    "square_feet": 650,
    "parking_lots": 1,
    "img_url": "https://example.com/images/apt-mercedes.jpg",
    "user_id": "f7e6d5c4-b3a2-1098-fedc-ba9876543210"
  }
}

Error Response

{
  "error": "Propiedad no encontrada en la base de datos"
}

Build docs developers (and LLMs) love