POST api/GetServingZones
Request Information
URI Parameters
None.
Body Parameters
ServingZonesRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SchoolId | globally unique identifier |
None. |
|
| RegionId | integer |
None. |
|
| MealTypeId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"SchoolId": "f38d02bc-38a3-4446-882c-10dc8b61733f",
"RegionId": 1,
"MealTypeId": 2
}
application/xml, text/xml
Sample:
<ServingZonesRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order"> <MealTypeId>2</MealTypeId> <RegionId>1</RegionId> <SchoolId>f38d02bc-38a3-4446-882c-10dc8b61733f</SchoolId> </ServingZonesRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of ServingZonesResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServingZoneId | integer |
None. |
|
| ServingZoneName | string |
None. |
|
| ServingZoneDescription | string |
None. |
|
| IsActive | boolean |
None. |
|
| FullService | boolean |
None. |
|
| PickUp | boolean |
None. |
|
| SchoolId | globally unique identifier |
None. |
|
| RegionId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ServingZoneId": 1,
"ServingZoneName": "sample string 2",
"ServingZoneDescription": "sample string 3",
"IsActive": true,
"FullService": true,
"PickUp": true,
"SchoolId": "2fe22d2b-75ef-4b33-9544-15dff850b761",
"RegionId": 8
},
{
"ServingZoneId": 1,
"ServingZoneName": "sample string 2",
"ServingZoneDescription": "sample string 3",
"IsActive": true,
"FullService": true,
"PickUp": true,
"SchoolId": "2fe22d2b-75ef-4b33-9544-15dff850b761",
"RegionId": 8
}
]
application/xml, text/xml
Sample:
<ArrayOfServingZonesResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cybersoft.Primero.OnlineFRE.APIs.Models.Order">
<ServingZonesResponseModel>
<FullService>true</FullService>
<IsActive>true</IsActive>
<PickUp>true</PickUp>
<RegionId>8</RegionId>
<SchoolId>2fe22d2b-75ef-4b33-9544-15dff850b761</SchoolId>
<ServingZoneDescription>sample string 3</ServingZoneDescription>
<ServingZoneId>1</ServingZoneId>
<ServingZoneName>sample string 2</ServingZoneName>
</ServingZonesResponseModel>
<ServingZonesResponseModel>
<FullService>true</FullService>
<IsActive>true</IsActive>
<PickUp>true</PickUp>
<RegionId>8</RegionId>
<SchoolId>2fe22d2b-75ef-4b33-9544-15dff850b761</SchoolId>
<ServingZoneDescription>sample string 3</ServingZoneDescription>
<ServingZoneId>1</ServingZoneId>
<ServingZoneName>sample string 2</ServingZoneName>
</ServingZonesResponseModel>
</ArrayOfServingZonesResponseModel>