Authorization: Bearer ********************
curl --location --request GET 'https://api.upbooks.io/api/v1/leave-policy?searchText' \
--header 'pageNo;' \
--header 'pageSize;' \
--header 'sortBy;' \
--header 'sortOrder;' \
--header 'ORGANIZATION-ID: 00000'
{
"data": [
{
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"name": "string",
"leaves": [
{
"type": "string",
"probationPeriod": 0,
"noOfLeaves": 0,
"monthlyLimit": 0
}
]
}
],
"totalCount": 0,
"filteredCount": 0,
"message": "string"
}