GET - Buildings
Overview
In AlterEstate we call buildings basically anything. It can vary depending on the project structure, some projects divide their availability with buildings, others divide the availability by phases or blocks. This is fully customizable by the user and it depends on the configuration of the project. Feel free to ask the project developer how is the developer making the division of the availability in the project.
This endpoint allows you to retrieve a list of the buildings inside a real estate project. Each building has details such as its name, visibility, order, and other relevant information.
HTTP Request
Method: GET
URL:
https://secure.alterestate.com/api/v1/projects/buildings/project_slug/
Request Parameters
None required
Response
The API will respond with a JSON array containing real estate project buildings. Each building has the following attributes:
id
(integer): The unique identifier of the building.uid
(string): A unique identifier for the building.name
(string): The name of the real estate building.order
(integer or null): The order of the building (null if not applicable).visible
(boolean): Indicates whether the building is visible.updated
(string): The date and time when the building was last updated.timestamp
(string): The date and time when the building was created.migrated
(boolean): Indicates whether the building data has been migrated.company
(integer): The identifier of the company associated with the project.project
(integer): The identifier of the parent project if applicable.
Sample Response
Status Codes
200 OK: The request was successful, and the response contains the list of real estate projects.
404 Not Found: The requested resource or endpoint does not exist.
500 Internal Server Error: An error occurred on the server while processing the request.
Usage Example
You can use this endpoint to retrieve a list of real estate projects available in your system. This information can be useful for displaying a list of available projects to users on your real estate website or application.
Last updated