| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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":"\/Date(-62135596800000-0000)\/","StatusId":0,"Year":0}]}