Fake api server
no_error
- prevents server from errors if setforce_error
- enforces server error if setcount
- search results countmin_stars
- minimum hotel starsmax_price
- maximum offer price
curl https://fake-hotel-api.herokuapp.com/api/hotels
[
{
"id": "13ef1108-7f18-40c7-ac0f-0e743b015755", //hotel id
"name": "soluta aperiam rerum", //hotel name
"country": "Seychelles", //hotel country
"city": "Norbertberg", //hotel country
"price": 140, //offer price
"images": [ //hotel images
"http://lorempixel.com/640/480/city?87325",
...
],
"date_start": "2016-04-02T08:09:12.088Z", //offer start date
"date_end": "2016-11-30T04:27:59.359Z", //offer end date
"stars": 2, //hotel stars
"rating": 1.811553610023111, //hotel rating
"description": "Recusandae enim debitis quisquam pariatur..." //hotel description
},
...
]
curl https://fake-hotel-api.herokuapp.com/api/hotels?force_error=1
{
"error": "Something failed!" //error message
}
hotel_id
- hotel id
curl https://fake-hotel-api.herokuapp.com/api/reviews?hotel_id=13ef1108-7f18-40c7-ac0f-0e743b015755
[
{
"name": "Nigel Kub", //commenter name
"comment": "Rerum est suscipit adipisci odio hic.", //comment
"positive": true, //false if comment is negative
"hotel_id": "13ef1108-7f18-40c7-ac0f-0e743b015755" //hotel id
},
...
]
curl https://fake-hotel-api.herokuapp.com/api/reviews
{
"error": "No hotel id specified" //error message
}