GET Api/Resource/Request/Swap/GetEntityCombinationToSwap
Get the combinations for swapping Can we swap shift and/or extra codes. Can we swap a shift for nothing.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
EntityCombinationsToSwap| Name | Description | Type | Additional information |
|---|---|---|---|
| WholeDay | boolean |
None. |
|
| EntitiesToSwap | Collection of EntityToSwap |
None. |
Response Formats
application/json, text/json
Sample:
{
"WholeDay": true,
"EntitiesToSwap": [
{
"Offered": 0,
"AllowedWithShift": true,
"AllowedWithExtraCode": true,
"AllowedWithNothing": true
},
{
"Offered": 0,
"AllowedWithShift": true,
"AllowedWithExtraCode": true,
"AllowedWithNothing": true
}
]
}
application/xml, text/xml
Sample:
<EntityCombinationsToSwap xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.Cas.Web.WebServices.Models">
<WholeDay>true</WholeDay>
<EntitiesToSwap>
<EntityToSwap>
<Offered>Shifts</Offered>
<AllowedWithShift>true</AllowedWithShift>
<AllowedWithExtraCode>true</AllowedWithExtraCode>
<AllowedWithNothing>true</AllowedWithNothing>
</EntityToSwap>
<EntityToSwap>
<Offered>Shifts</Offered>
<AllowedWithShift>true</AllowedWithShift>
<AllowedWithExtraCode>true</AllowedWithExtraCode>
<AllowedWithNothing>true</AllowedWithNothing>
</EntityToSwap>
</EntitiesToSwap>
</EntityCombinationsToSwap>