Example
Property Listings Backend Example
A public example of the backend contract Spala can help create for real estate listings: properties, agents, saved listings, inquiries, auth, search filters, and API docs.
What this example proves
This page is not source code and does not expose private Spala implementation details. It shows the kind of backend contract an agent or frontend builder should expect after a Spala project is generated, reviewed, documented, and published.
Best for: real estate teams, marketplace builders, agencies.
Suggested backend contract
| Tables | users, agents, properties, property_images, saved_listings, inquiries, appointments |
|---|---|
| Endpoints | GET /api/propertiesGET /api/properties/{id}POST /api/propertiesPUT /api/properties/{id}POST /api/inquiriesPOST /api/saved-listingsGET /api/me/saved-listings |
| Auth | Public listing read endpoints plus authenticated saved listing, inquiry, and agent/admin write routes. |
| Frontend handoff | Frontend receives filter fields, pagination shape, image metadata rules, auth routes, CORS origin, and generated docs. |
How to test this in Spala
- Create a low-risk project in the hosted dashboard.
- Ask AI Copilot to generate this backend with auth, validation, API docs, and frontend handoff details.
- Review generated tables, endpoints, functions, and docs.
- Test protected and public routes in API Playground.
- Publish only after validation and review.
Machine-readable example files: handoff.json and openapi.json.