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