In this case, we will search for existing holidays.
Requesting to display the search results on the first page; the page size is 1.
...api/v1/holiday/holidays?pageSize=1&pageNumber=1
To find existing holidays, use the following endpoint:
https://holiday-api.sandbox.tuumplatform.com/api/v1/holiday/holidays
The sample request body is as follows:
No body
curl --location 'https://holiday-api.sandbox.tuumplatform.com/api/v1/holiday/holidays?pageSize=1&pageNumber=1' \
--header 'x-channel-code: SYSTEM' \
--header 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYW1lIjoiT2ZmaWNlciBUZXN0IiwiZW1wbG95ZWVJZCI6IklELTEwMDAiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHBpcnlEVGltZSI6IjIwMjQtMTItMTlUMTY6NDY6MjUiLCJleHAiOjE3MzQ2MjY3ODUsInJvbGVzIjpbIkFETUlOIl19.Obqfvpc6ulDVPRTF1j6HmR_5M5Zwo5rLbjE2v3f5UwY' \
--data ''
Below you will find the response to the sample request:
The search returned information about the existing holidays.