Base URL
All API requests should be made to:Root Endpoint
The root endpoint returns a simple text response identifying the API:API Documentation
This API is built with Hono framework on Cloudflare Workers and uses D1 database for data persistence.Interactive Documentation
You can explore and test the API using the interactive Swagger UI:- OpenAPI JSON Schema:
https://idforideas-1.jamrdev.com.ar/doc - Swagger UI Interface:
https://idforideas-1.jamrdev.com.ar/ui
Authentication
The API uses HTTP Basic Authentication for protected endpoints. All endpoints that create, update, or delete properties require authentication. To authenticate, include theAuthorization header with your credentials:
Protected Endpoints
The following endpoints require authentication:POST /api/propiedades- Create propertyPATCH /api/propiedades/{id}- Update propertyDELETE /api/propiedades/{id}- Delete propertyGET /api/auth/verify- Verify authentication
Public Endpoints
The following endpoints are publicly accessible:GET /api/propiedades- List all propertiesGET /api/propiedades/{id}- Get property by ID
Response Format
All responses are returned in JSON format with appropriate HTTP status codes.Success Responses
Query endpoints (GET) return data directly:Error Responses
Error responses vary by endpoint:Status Codes
| Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 201 | Created - Resource created successfully |
| 400 | Bad Request - Invalid data or validation error |
| 401 | Unauthorized - Authentication required or failed |
| 404 | Not Found - Resource not found |
| 409 | Conflict - Resource already exists (duplicate codigo_id) |