Get remaining days - absenceio/PublicAPI GitHub Wiki
##Get remaining days
POST publicApi/allowances/remaining?apiKey=<apiKey here>
Returns users remaining days.
{
"data": [
{
"name": "Serkis, Hendrik",
"allowances": {
"Vacation": {
"2014": 0,
"2015": 5,
"2016": 18
}
}
},
...
]
}
####You can expect to get the following response:
parameter | type | default |
---|---|---|
data | array |
##data array
parameter | type | default |
---|---|---|
name | string | |
allowances | array |
##allowances array
parameter | type | comment |
---|---|---|
allowance | object |
##allowance object
parameter | type | comment |
---|---|---|
2014 | int | previous year |
2015 | int | current year |
2016 | int | next year |