Wiki source code of 3. Get Cities
Last modified by Giorgi Mdivnishvili on 2024/02/29 09:44
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
![]() |
4.1 | 5 | = Method - Get Cities = |
![]() |
1.1 | 6 | |
7 | endpoint - [[https:~~/~~/testapi.rustaronline.com/api/Hotels/GetCities>>https://testapi.rustaronline.com/api/Hotels/GetCities]] | ||
8 | |||
9 | |||
![]() |
3.1 | 10 | The method returns the list of available cities. |
![]() |
1.1 | 11 | |
12 | {{code language="Json"}} | ||
13 | { | ||
14 | "Code": "00", | ||
15 | "Message": "", | ||
16 | "Timestamp": "2023-12-04T12:00:28.9683447+04:00", | ||
17 | "Version": "r1", | ||
18 | "ResponseID": "ac10ee8b-f73b-4179-afa2-2e585ba4881d", | ||
19 | "Data": [ | ||
20 | { | ||
21 | "cityid": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", | ||
22 | "cityname": "Dubai", | ||
23 | "countrycode": "AE" | ||
24 | }, | ||
25 | ... | ||
26 | ] | ||
27 | } | ||
28 | {{/code}} | ||
![]() |
2.1 | 29 | |
30 | == Description of Response parameters == | ||
31 | |||
![]() |
3.1 | 32 | |
![]() |
8.1 | 33 | (% class="table-bordered" %) |
![]() |
5.1 | 34 | (% class="info" %)|**Value**|**Description** |
35 | |**cityid**| GUID of the City where the hotel is located. | ||
36 | |**cityname**| string. Name of the city | ||
37 | |**countrycode**| string. ISO2 Country code | ||
![]() |
2.1 | 38 | |
39 |