POST api/BedCleaning/offlunch

Checks if a housekeeper is currently Off of Lunch break

Request Information

URI Parameters

None.

Body Parameters

A JSON object containg the Employee in the form {"EmployeeId":x,"Username":y}

Housekeeper
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

Username

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "Username": "sample string 2"
}

application/xml, text/xml

Sample:
<Housekeeper xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Web.Api.Models">
  <EmployeeId>1</EmployeeId>
  <Username>sample string 2</Username>
</Housekeeper>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Housekeeper'.

Response Information

Resource Description

True if off lunch break, false if on lunch break

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>