Skip to content

AirBnBOptimalPricing/BE

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •