Wiki source code of 3. Hotel Search
Version 5.1 by Giorgi Mdivnishvili on 2024/02/27 16:39
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.1 | 1 | |
| 2 | |||
| 3 | With the parameters provided in GetHotels and GetCities reponse, it’s avaible to search hotels with the desired parameters in Hotels Search. | ||
| 4 | |||
| 5 | |||
| |
4.1 | 6 | endpoint : [[https:~~/~~/testapi.rustaronline.com/api/Hotels/Search>>url:https://testapi.rustaronline.com/api/Hotels/Search]] |
| |
1.1 | 7 | |
| |
4.1 | 8 | Method POST |
| |
3.1 | 9 | |
| |
4.1 | 10 | **Request example:** |
| 11 | |||
| |
3.1 | 12 | {{code language="Json"}} |
| 13 | { | ||
| 14 | "MaxResultCount":50, | ||
| 15 | "MaxHotelCount":10, | ||
| |
2.1 | 16 | "ContragentContactUID":"55a2fcfb-8378-4b73-ab1e-bc8e5c836f4e", |
| 17 | "CheckInDate":"2023-12-25T00:00:00", | ||
| 18 | "CheckOutDate":"2024-01-02T00:00:00", | ||
| 19 | "Adults":1, | ||
| |
3.1 | 20 | "Children":2, |
| 21 | "ChildrenAges":"5,10", | ||
| 22 | "CountryMask":"AE", | ||
| |
2.1 | 23 | |
| 24 | "arrivalCities": [ | ||
| |
1.1 | 25 | { |
| |
3.1 | 26 | "cityUID": "f5185fa3-3f56-44ed-bf6b-80386a33caa2" |
| |
2.1 | 27 | |
| |
1.1 | 28 | } |
| 29 | ] | ||
| 30 | |||
| |
2.1 | 31 | } |
| 32 | {{/code}} | ||
| |
1.1 | 33 | |
| |
2.1 | 34 | |
| |
5.1 | 35 |