| GET | /GetAnnualLeaveCalendar |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Month | query | int? | No | |
| Year | query | int? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Month | form | int | No | |
| Year | form | int | No | |
| DaysInMonth | form | int | No | |
| Staff | form | List<StaffViewModel> | No | |
| Years | form | List<SelectListItem> | No | |
| GetLeaveDatesForMonth | form | List<GetLeaveDatesForMonthViewModel> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| FirstName | form | string | No | |
| LastName | form | string | No | |
| EmailAddress | form | string | No | |
| IsDeleted | form | bool | No | |
| AnnualLeaveBalance | form | double | No | |
| AnnualLeaveAllowance | form | double | No | |
| PurchaseOrderIdentifier | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StaffId | form | int | No | |
| LeaveDate | form | DateTime | No | |
| StatusId | form | int | No | |
| Year | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /GetAnnualLeaveCalendar HTTP/1.1 Host: amazon-api.squareonesystems.co.uk Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Month: 0,
Year: 0,
DaysInMonth: 0,
Staff:
[
{
Id: 0,
FirstName: String,
LastName: String,
EmailAddress: String,
IsDeleted: False,
AnnualLeaveBalance: 0,
AnnualLeaveAllowance: 0,
PurchaseOrderIdentifier: String
}
],
Years:
[
{
Disabled: False,
Group:
{
Disabled: False,
Name: String
},
Selected: False,
Text: String,
Value: String
}
],
GetLeaveDatesForMonth:
[
{
StaffId: 0,
LeaveDate: 0001-01-01,
StatusId: 0,
Year: 0
}
]
}