GET api/Catering/GetRestaurantPackageResource?restaurantId={restaurantId}&restaurantPackageTypeId={restaurantPackageTypeId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
restaurantId | integer |
Required |
|
restaurantPackageTypeId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
RestaurantPackageResourceName | Description | Type | Additional information |
---|---|---|---|
DiscountForRestaurantPackage | integer |
None. |
|
VatRegisterForRestaurantPackage | boolean |
None. |
|
FoodTypes | Collection of RestaurantPackageFoodTypeView |
None. |
|
FoodExceptions | Collection of RestaurantPackageFoodExceptionView |
None. |
|
LeadTimes | Collection of RestaurantPackageLeadTimeView |
None. |
Response Formats
application/json, text/json
Sample:
{ "discountForRestaurantPackage": 1, "vatRegisterForRestaurantPackage": true, "foodTypes": [ { "foodTypeId": 1, "foodTypeName": "sample string 2", "selected": true }, { "foodTypeId": 1, "foodTypeName": "sample string 2", "selected": true } ], "foodExceptions": [ { "foodExceptionId": 1, "foodExceptionName": "sample string 2", "selected": true }, { "foodExceptionId": 1, "foodExceptionName": "sample string 2", "selected": true } ], "leadTimes": [ { "leadTimeId": 1, "leadTimeName": "sample string 2", "selected": true }, { "leadTimeId": 1, "leadTimeName": "sample string 2", "selected": true } ] }
text/html
Sample:
{"discountForRestaurantPackage":1,"vatRegisterForRestaurantPackage":true,"foodTypes":[{"foodTypeId":1,"foodTypeName":"sample string 2","selected":true},{"foodTypeId":1,"foodTypeName":"sample string 2","selected":true}],"foodExceptions":[{"foodExceptionId":1,"foodExceptionName":"sample string 2","selected":true},{"foodExceptionId":1,"foodExceptionName":"sample string 2","selected":true}],"leadTimes":[{"leadTimeId":1,"leadTimeName":"sample string 2","selected":true},{"leadTimeId":1,"leadTimeName":"sample string 2","selected":true}]}
application/xml, text/xml
Sample:
<RestaurantPackageResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EB.Service.Contracts.Api"> <DiscountForRestaurantPackage>1</DiscountForRestaurantPackage> <FoodExceptions> <RestaurantPackageFoodExceptionView> <FoodExceptionId>1</FoodExceptionId> <FoodExceptionName>sample string 2</FoodExceptionName> <Selected>true</Selected> </RestaurantPackageFoodExceptionView> <RestaurantPackageFoodExceptionView> <FoodExceptionId>1</FoodExceptionId> <FoodExceptionName>sample string 2</FoodExceptionName> <Selected>true</Selected> </RestaurantPackageFoodExceptionView> </FoodExceptions> <FoodTypes> <RestaurantPackageFoodTypeView> <FoodTypeId>1</FoodTypeId> <FoodTypeName>sample string 2</FoodTypeName> <Selected>true</Selected> </RestaurantPackageFoodTypeView> <RestaurantPackageFoodTypeView> <FoodTypeId>1</FoodTypeId> <FoodTypeName>sample string 2</FoodTypeName> <Selected>true</Selected> </RestaurantPackageFoodTypeView> </FoodTypes> <LeadTimes> <RestaurantPackageLeadTimeView> <LeadTimeId>1</LeadTimeId> <LeadTimeName>sample string 2</LeadTimeName> <Selected>true</Selected> </RestaurantPackageLeadTimeView> <RestaurantPackageLeadTimeView> <LeadTimeId>1</LeadTimeId> <LeadTimeName>sample string 2</LeadTimeName> <Selected>true</Selected> </RestaurantPackageLeadTimeView> </LeadTimes> <VatRegisterForRestaurantPackage>true</VatRegisterForRestaurantPackage> </RestaurantPackageResource>