Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 3.18 KB

README.md

File metadata and controls

59 lines (39 loc) · 3.18 KB

AirBnB-be

API URL

https://airbnb-labmda.herokuapp.com

Auth End-Points

Method URL Description
post /auth/register require <firstName, lastName, email, password >
Post /auth/login require <email, password>

User Schema

field data type metadata
id unsigned integer primary key, auto-increments, generated by database
firstName string required
lastName string required
email string required
password string encrypted by the server

user End-Points

Method URL Description
get /user/ return all the properties for all the users
get /user/:id return all the properties for specific user
Post /user/property/:id require <address,city,state,zip,property_type,price>
put /user/property/:id return a massage for updating property for specific user
delete /user/property/:id delete the property for specific user

Property Schema

field data type metadata
id unsigned integer primary key, auto-increments, generated by database
address string required
city string required
state string required
zip integer required
description string not required
children_allowed boolean set to false as a default
property_type string required
bedrooms_number integer not required
bathrooms_number integer not required
amenities string not required
price float required