Sistema de Gestión de Propiedades
A serverless REST API for real estate property management built for Inmobiliaria Bonpland Propiedades. Designed for high availability and low latency using modern edge computing infrastructure.Overview
This API provides comprehensive property management capabilities including creation, updates, queries, and deletion of real estate listings. Built with Hono framework and deployed on Cloudflare Workers, it offers:- Serverless Architecture - Runs on Cloudflare’s global edge network for low latency
- Type Safety - Zod schema validation ensures data integrity at runtime
- OpenAPI Documentation - Interactive Swagger UI for API exploration
- Secure Authentication - HTTP Basic Auth for administrative operations
- CORS Enabled - Ready for frontend integration
Key Features
RESTful API
Complete CRUD operations for property management
OpenAPI Docs
Interactive Swagger UI for testing endpoints
Auto ID Generation
Automatic unique 6-character alphanumeric IDs
Type Validation
Runtime validation with Zod schemas
Basic Auth
Secure admin operations with HTTP Basic Auth
Cloudflare D1
SQLite database on Cloudflare’s edge
Technology Stack
| Component | Technology |
|---|---|
| Runtime | Cloudflare Workers (Edge Computing) |
| Framework | Hono v4+ (with native OpenAPI/Swagger support) |
| Database | Cloudflare D1 (Relational SQL) |
| Validation | Zod (runtime type integrity) |
API Endpoints
The API is available at:https://idforideas-1.jamrdev.com.ar
Public Endpoints (no authentication required):
GET /api/propiedades- List all propertiesGET /api/propiedades/{id}- Get a specific propertyGET /doc- OpenAPI JSON specificationGET /ui- Swagger UI interface
POST /api/propiedades- Create a new propertyPATCH /api/propiedades/{id}- Update a propertyDELETE /api/propiedades/{id}- Delete a propertyGET /api/auth/verify- Verify admin credentials
Property Management
Properties have the following attributes:- codigo_id - Unique 6-character identifier (auto-generated if not provided)
- Location - Country, city, and address
- Details - Rooms, square meters, price
- Type - Rental (Alquiler) or Sale (Venta)
- Status - Available, Reserved, Rented, or Sold
- Description - Optional property description
The
codigo_id is immutable once created. Any attempt to modify it will result in a 400 Bad Request error.Quick Links
Quickstart
Get started with your first API call
API Reference
Explore all available endpoints
Deploy Guide
Deploy your own instance
Integration Example
Next Steps
Read the Quickstart
Learn how to make your first API calls in the Quickstart guide
Explore the API
Browse the complete API Reference documentation
Set up Authentication
Configure Basic Auth for admin operations
Deploy Your Own
Follow the Deployment guide to set up your instance