Holiday APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
This section details about the service APIs for the Holidays.
This service will get all the holidays.
GET /holidays
Response format
JSON
Requires Authentication
Yes
--NA--
Response Code : 200 (OK)
This service will create a new holiday.
POST /holidays
Response format
JSON
Requires Authentication
Yes
locationCode
Yes
location code
holidayDate
Yes
date
holidayMonth
Yes
month
holidayYear
Yes
year
holidayName
Yes
name
holidayDesc
Yes
description
langCode
Yes
language code
isActive
Yes
is active?
Response Code : 200 (OK)
This service will update a holiday.
PUT /holidays
Response format
JSON
Requires Authentication
Yes
locationCode
Yes
location code
holidayDate
Yes
date
newHolidayDate
Yes
new date
newHolidayName
Yes
new name
holidayName
Yes
name
holidayDesc
Yes
description
langCode
Yes
language code
isActive
Yes
is active?
newHolidayDesc
Yes
new description
Response Code : 200 (OK)
This service will provides the service to delete a holiday.
DELETE /holidays
Response format
JSON
Requires Authentication
Yes
holidayDate
Yes
date to be deleted
holidayName
Yes
name of the holiday to be deleted
locationCode
Yes
location code
Response Code : 200 (OK)
This service will provides the service to get all holidays by Id.
GET /holidays/{holidayid}
Response format
JSON
Requires Authentication
Yes
holidayid
yes
holiday Id
Response Code : 200 (OK)
This service will get all the holidays by holidayid and language code.
GET /holidays/{holidayid}/{langcode}
Response format
JSON
Requires Authentication
Yes
holidayid
yes
holiday Id
langCode
Yes
language code
Response Code : 200 (OK)
This service will retrieve all the holidays with additional metadata.
GET /holidays/all
Response format
JSON
Requires Authentication
Yes
orderBy
optional
response order
desc
pageNumber
optional
page no for the requested data
0
pageSize
optional
page size for the requested data
10
sortBy
optional
sort the requested data based on param value
createdDateTime
200
Success
400
Bad request
401
Unauthorized
403
Forbidden
KER-MSD-019
Error occured while fetching Holidays
Fetch Issue
KER-MSD-020
Holiday not found
Data Not Found
KER-MSD-065
Error occurred while inserting holiday
Insertion Issue
KER-MSD-099
Error occurred while updating holiday
Update Issue
KER-MSD-100
Error occurred while deleting holiday
Deletion Issue
KER-MSD-025
Error occured while fetching Location Hierarchy
fetch issue
KER-MSD-026
Location not found
Data Not Found
This API is used by the Administrator Portal UI to populate filter dropdowns on the Holiday List View UI Screen.
POST /holidays/filtervalues
Response format
JSON
Requires Authentication
Yes
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["unique","all"]
unique
unique
languagecode
Yes
Language code in Language code in ISO 639-2 format
Response Code : 200 (OK)
This API is used by the Administrator Portal to fetch list of Holidays based on a given filter criteria to display the list of Holidays on the Portal UI.
POST /holidays/search
Response format
JSON
Requires Authentication
Yes
filters
No
Array of the filter applied. In case of "list" screen, this array will be empty
-NA-
columnName
No
The column name in the JSON response
-NA-
type
No
The value have to be in ["contains","equals","startsWith","between"]
-NA-
value
No
Value or id selected in the filter by the end user
-NA-
fromValue
No
If the type is "between", this field is the value of the fromName
-NA-
toValue
No
If the type is "between", this field is the value of the toName
-NA-
languagecode
Yes
Language code in Language code in ISO 639-2 format
sort
No
This is an array of the sort field and type
sortfield
The field on which the sort is applied
modifiedDate
sorttype
This should be either of ['ASC','DESC']
ASC
pagination
The pagination parameter object
pageStart
This is the start index
0
0
pageFetch
This is the amount of records to be fetched
10
10
Please find the filter columns used in search
holidayName
holidayDate|["between"]
isActive
Response Code : 200 (OK)