Home

Awesome

Unreal Estate

Unreal Estate is a simple RESTful web app that allows the user to find Real Estate listings they might be interested in. Unreal Estate is built on Laravel 5 and PHP 7.

Listing Updates

The application maintains its own database of real estate listings. These listings are updated daily (2:00AM EST) from an external source.

API Usage

There are two endpoints available for reading listing data, and one endpoint for modifying listing data.

Get All Listings

Retrieves all listings as an array of JSON objects

Get Paginated Listings

Retrieves a partial collection of all listings as an array of JSON objects. Sorting, filtering, and pagination is done via query parameters.

ParameterDescriptionAllowed ValuesDefault
pagespecifies the page to showany positive, non-zero integer1
results_per_pagespecifies the number of results to show per pageany positive, non-zero integer1
photos_onlyreturns only photos from the listingstrue or falsefalse
sortspecifies how to sort the returned listingsSorting Expression, only list_price and listing_date fieldsnone

if no sorting is specified, no sorting will be explicitly applied and there are no guarantees what order the results will be in

Toggle Listing Activation

Allows user to activate or deactivate a listing. The behavior of this endpoint is toggling, so calling the endpoint when the listing is inactive will activate it, and vice-versa.

The endpoint also returns the representation of the affected listing as a JSON object.