A travel rental booking web application of the company which allows to manage the properties, i.e, add, edit & delete provided rental properties. Additionally, the API also allows an administrator to manage Rest-Inn’s customers.
This end point allows to retrieve a customer based on the provided id
This end point allows to create a new customer. The following data needs to be submitted in the body of the request (as JSON) :
- firstName (required)
- lastName(required)
- email (required)
- password(required)
- phoneNumbers(optional)
This end point allows to retrieve a property based on the provided id
This end point allows to create a new property. The following data needs to be submitted in the body of the request (as JSON):
- propertyTitle(required)
- rentalPrice(required)
- description
- propertyType(required)
- houseRules
- amentities(required),
- location(required),
- bestSeller(required)
- propertyPhoto
This end point allows to delete a property based on the provided id
This end point allows to update the property data based on the provided id. Any of the following data can be submitted in the body of the request (as JSON):
- propertyTitle
- rentalPrice
- description
- propertyType
- houseRules
- amentities
- location
- bestSeller
- propertyPhoto
This end point allows to retrieve all the properties
This end point also allows to filter the properties by passing any of the below query string parameters:
| Parameter | Description |
|---|---|
| propertyType | property type |
| bestSeller | bestseller or not |
| location | properties with the same location |