https://dorainn.onrender.com/api/v3/user/register
https://dorainn.onrender.com/api/v3/user/login
or
http://127.0.0.1:3000/api/v3/user/register
http://127.0.0.1:3000/api/v3/user/login
Object
Description
email
user's email
password
user's password
HTTP GET Request Parameters
rooms route
Example
https://dorainn.onrender.com/api/v3/room?roomId=""&roomType=""
or
http://127.0.0.1:3000/api/v3/room?roomId=""&roomType=""
Object
Description
roomId
[optional] use this parameter to filter response by room id
roomType
[optional] use this parameter to filter response by room type
roomtypes route
Example
https://dorainn.onrender.com/api/v3/roomtype?bedCount=""&bedrooms=""&bathrooms=""&maxOccupancy=""
or
http://127.0.0.1:3000/api/v3/roomtype?bedCount=""&bedount=""&bathrooms=""&maxOccupancy=""
Object
Description
bedType
[optional] use this parameter to filter response by bedType
bedrooms
[optional] use this parameter to filter response by number of bedrooms
pricePerNight
[optional] use this parameter to filter response by price
maxOccupancy
[optional] use this parameter to filter response by maxOccupancy
HTTP PATCH Request Parameters
rooms route
Example
https://dorainn.onrender.com/api/v3/roomtype/:roomType
or
http://127.0.0.1:3000/api/v3/roomtype/:roomType
Object
Description
roomId
use this to edit a room id
price
use this to edit the price of a room
roomtypes route
Example
https://dorainn.onrender.com/api/v3/room/:roomId
or
http://127.0.0.1:3000/api/v3/room/:roomId
Object
Description
amenities
[optional] use this parameter to edit ameities available to a room type
bedType
[optional] use this parameter to edit the type of bed
pricePerNight
[optional] use this parameter to edit the price per night
maxOccupancy
[optional] use this parameter to edit maxOccupancy
Technologies Used
NodeJS This is a cross-platform runtime environment built on Chrome's V8 JavaScript engine used in running JavaScript codes on the server. It allows for installation and managing of dependencies and communication with databases.
ExpressJS This is a NodeJS web application framework.
MongoDB This is a free open source NOSQL document database with scalability and flexibility. Data are stored in flexible JSON-like documents.
Mongoose ODM This makes it easy to write MongoDB validation by providing a straight-forward, schema-based solution to model to application data.