Changes for page 1. SearchHotelPrices
Last modified by Giorgi Mdivnishvili on 2024/11/06 10:47
From version 10.1
edited by Giorgi Mdivnishvili
on 2024/01/09 07:17
on 2024/01/09 07:17
Change comment:
There is no comment for this version
To version 6.1
edited by Giorgi Mdivnishvili
on 2023/12/15 16:22
on 2023/12/15 16:22
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 1.SearchHotelPrices1 +SearchHotelPrices - Content
-
... ... @@ -12,7 +12,7 @@ 12 12 == Endpoint URL - [POST] == 13 13 14 14 {{info}} 15 -[[https:~~/~~/in tegration.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices>>https://integration.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices]]15 +[[https:~~/~~/online-api.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices>>https://online-api.kazunion.com/api/OnlyHotelPackages/SearchHotelPrices]] 16 16 {{/info}} 17 17 18 18 ... ... @@ -345,55 +345,4 @@ 345 345 } 346 346 {{/success}} 347 347 348 - 349 -== Definitions == 350 - 351 - 352 -=== Paging and Caching === 353 - 354 -During the first request, Paging id must be empty like this ( "pagingId": "",) pagenumber is the number of the page, pagerowcount means number of the given result in one page. So in the first request we can search like this: 355 - 356 - 357 -==== first request ==== 358 - 359 -{{code language="Json"}} 360 - { 361 - "pagingId": "", 362 - "pageNumber": 1, 363 - "pageRowCount":10 364 - } 365 -{{/code}} 366 - 367 - 368 -==== Request with caching ==== 369 - 370 -as we receive response, in the end we can see pagingId- number, chich we can use for caching, and then just switch pagenumbers. for cleaning cache, it's important to make new request without pagingID 371 - 372 -{{code language="Json"}} 373 - { 374 - "pagingId": "80", 375 - "pageNumber": 1, 376 - "pageRowCount":10 377 - } 378 -{{/code}} 379 - 380 - 381 - 382 -== Important == 383 - 384 -{{error}} 385 -It's Important to in every other request header, put Auth token 386 - 387 -**Key **- Authorization 388 - 389 -**Value **- Bearer Token what is given in this response. 390 - 391 - 392 -**also note in headers that:** 393 - 394 -Content-Type - application/json 395 - 396 -**Key - **X-nugios-timezone 397 - 398 -**Value **- 240 399 -{{/error}} 348 +