A simple Realestat inentory managemnt API build on PHP Laravel
Clone the project
git clone https://github.com/afraym/danubiorealestate.gitGo to the project directory
cd danubiorealestateInstall dependencies
composer installcopy .env.example to .env and add your database info
Migrate database
php artisan migrateStart the server
php artisan serve POST api/properties| Parameter | Type | Description |
|---|---|---|
name |
string |
Required. Name of property |
type |
string |
Required. Type of property ApartmentorHouse |
address |
string |
Required. Address of property |
bedrooms |
integer |
Required. Number of bedrooms of the property |
size |
integer |
Required. Size of property |
size_type |
integer |
Required. Size type of property options : sqft and sqm |
price |
integer |
Required. Price of property |
lat |
integer |
Optional. Latitude of property |
lon |
integer |
Optional. Longitude of property |
GET api/properties GET api/properties/{id} PUT|PATCH api/properties/{id}| Parameter | Type | Description |
|---|---|---|
name |
string |
Optional. Name of property |
type |
string |
Optional. Type of property ApartmentorHouse |
address |
string |
Optional. Address of property |
bedrooms |
integer |
Optional. Number of bedrooms of the property |
size |
integer |
Optional. Size of property |
size_type |
integer |
Optional. Size type of property options : sqft and sqm |
price |
integer |
Optional. Price of property |
lat |
integer |
Optional. Latitude of property |
lon |
integer |
Optional. Longitude of property |
DELETE api/properties/{id} GET api/search/| Parameter | Type | Description |
|---|---|---|
name |
string |
Optional. name of property |
type |
string |
Optional. Type of property ApartmentorHouse |
address |
string |
Optional. Address of property |
size |
integer |
Optional. Size of property |
size_type |
integer |
Optional. Size type of property options : sqft and sqm |
bedrooms |
integer |
Optional. number of bedrooms of property |
To search Properties by a geographical (Lat/Lon) point and a radius distance from it
| Parameter | Type | Description |
|---|---|---|
lon |
integer |
Required Longitude |
lat |
integer |
Required Latitude |
radius |
integer |
Required Radius distance |
- Authentication
- Property Image upload
- Property to user relationship
- Property Video Previews