Changes for page SearchTourPackages - Basic Version
Last modified by Giorgi Mdivnishvili on 2024/07/11 12:45
From version 9.1
edited by Giorgi Mdivnishvili
on 2024/04/11 11:27
on 2024/04/11 11:27
Change comment:
There is no comment for this version
To version 12.1
edited by Giorgi Mdivnishvili
on 2024/04/11 17:31
on 2024/04/11 17:31
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,11 +6,32 @@ 6 6 7 7 = Method Description = 8 8 9 -Tour package mean, tour with hotel and flight together. Using this method gives data about full package availability with flight and hotel options. 10 10 11 - It'spossiblereceivedata as current dates, alsoindate rangesusing parameter"stayDays": 0, "stayDaysTo": 0. themaximum difference between the dayscanbe 7.Below you cansee examples.10 +=== Method Overview: Streamlined Tour Package Discovery and Booking === 12 12 12 +**Purpose:** This method outlines the most efficient process for locating and subsequently booking a tour package utilizing a minimal set of required parameters. It is designed to simplify the user interaction by reducing the complexity and volume of input data necessary for operation. 13 13 14 +**Procedure:** 15 + 16 +1. **Initialization**: Start by specifying the essential parameters. This approach is engineered to streamline the search and booking process, focusing on the core data elements critical for identifying suitable tour packages. 17 +1. **Search Execution**: Deploy the method with the specified parameters to initiate the search. The system is optimized to process these inputs, conducting a targeted query across available tour packages to identify matches that align with the user's criteria. 18 +1. **Selection and Booking**: Upon receiving search results, the user can select a desired tour package. The booking process is then initiated with the minimal parameters already provided, ensuring a seamless transition from selection to confirmation. 19 + 20 +**Parameter Details:** 21 + 22 +* The parameters required for this method are intentionally limited to essential elements only, aiming to expedite the search and booking phases while maintaining effectiveness. Details on these parameters, including data types and usage instructions, are documented separately. 23 + 24 +**Usage Notes:** 25 + 26 +* This method is particularly beneficial for users seeking a straightforward and efficient path to tour package booking, minimizing decision fatigue and enhancing user experience. 27 + 28 +**Examples:** 29 + 30 +* Code examples and detailed step-by-step instructions for utilizing this method are available in the subsequent sections, providing practical guidance on implementing the streamlined tour package discovery and booking process. 31 + 32 +This documentation segment aims to facilitate developers and users in leveraging a simplified method for tour package exploration and booking, ensuring an efficient and user-friendly interaction with the system. 33 + 34 + 14 14 == Endpoint URL - [POST] == 15 15 16 16 {{info}} ... ... @@ -46,7 +46,7 @@ 46 46 } 47 47 {{/code}} 48 48 49 -== Request example 2Adults 2Child == 70 +== Request example for 2Adults 2Child == 50 50 51 51 {{code language="Json"}} 52 52 { ... ... @@ -840,6 +840,8 @@ 840 840 |totalCount|Number|The total count of packages. This is the total number of packages in all pages of results. 841 841 |error|Boolean|A boolean indicating whether there was an error. If true, it means that there was an error in retrieving the packages. 842 842 864 +==== ==== 865 + 843 843 ==== first request ==== 844 844 845 845 {{code language="Json"}} ... ... @@ -850,10 +850,12 @@ 850 850 } 851 851 {{/code}} 852 852 876 +While making first search request, paging id should be empty, "pageNumber": and "pageRowCount":10 means that, in response there will be returned maximum 10 packages per page. 853 853 878 + 854 854 ==== Request with caching ==== 855 855 856 -a s we receiveresponse, in the end we can see pagingId- number, chich we can use for caching, andthenjust switch pagenumbers.for cleaning cache, it's important to make new request without pagingID881 +after receiving response from first search request, in the end we can see pagingId- number, wchich we can use for caching, and (pageinatoin) for switch pagenumbers, and displaying results as we whant. For cleaning cache, it's important to make new request without cllear pagingID, like this "pagingId": "", 857 857 858 858 {{code language="Json"}} 859 859 { ... ... @@ -906,18 +906,18 @@ 906 906 == Important == 907 907 908 908 {{error}} 909 - It'sImportant to in every otherrequestheader, put Auth token934 +=== Implementing Authorization in Subsequent Requests === 910 910 911 - **Key**-Authorization936 +For every API request after the initial authentication, it's crucial to include the authorization token in the request header. This ensures your requests are authorized and can access the necessary resources. Here's how to properly include your token: 912 912 913 -**Value **- Bearer Token what is given in this response. 938 +* **Header Key:** Authorization 939 +* **Header Value:** Bearer [Your Token Here] - Use the bearer token provided in the initial authentication response. The authorization type should be specified as Bearer Token. 914 914 941 +Additionally, to ensure your requests are properly formatted and recognized, include the following headers: 915 915 916 -**also note in headers that:** 943 +* **Content-Type:** Specify this header as application/json to indicate the format of the request body. 944 +* **Header Key:** X-nugios-timezone 945 +* **Header Value:** 240 - Adjust this value to match your local timezone offset in minutes. 917 917 918 -Content-Type - application/json 919 - 920 -**Key - **X-nugios-timezone 921 - 922 -**Value **- 240 947 +Incorporating these headers with their respective values is essential for the successful processing of your API requests. 923 923 {{/error}}