POST v1/SaveDeliveryPostCodes

Request Information

URI Parameters

None.

Body Parameters

SaveDeliveryPostCodesModel
NameDescriptionTypeAdditional information
RestaurantId

integer

None.

PostCodes

Collection of DeliveryPostCodeDto

None.

Request Formats

application/json, text/json

Sample:
{
  "RestaurantId": 1,
  "PostCodes": [
    {
      "Id": 1,
      "PostCode": "sample string 2",
      "RestaurantId": 3,
      "Delivery": true,
      "DelInd": true,
      "PostCodePriority": 1
    },
    {
      "Id": 1,
      "PostCode": "sample string 2",
      "RestaurantId": 3,
      "Delivery": true,
      "DelInd": true,
      "PostCodePriority": 1
    }
  ]
}

application/xml, text/xml

Sample:
<SaveDeliveryPostCodesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TCB.Entity.Model">
  <PostCodes xmlns:d2p1="http://schemas.datacontract.org/2004/07/TCB.Entity.Dtos">
    <d2p1:DeliveryPostCodeDto>
      <d2p1:DelInd>true</d2p1:DelInd>
      <d2p1:Delivery>true</d2p1:Delivery>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PostCode>sample string 2</d2p1:PostCode>
      <d2p1:PostCodePriority>1</d2p1:PostCodePriority>
      <d2p1:RestaurantId>3</d2p1:RestaurantId>
    </d2p1:DeliveryPostCodeDto>
    <d2p1:DeliveryPostCodeDto>
      <d2p1:DelInd>true</d2p1:DelInd>
      <d2p1:Delivery>true</d2p1:Delivery>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PostCode>sample string 2</d2p1:PostCode>
      <d2p1:PostCodePriority>1</d2p1:PostCodePriority>
      <d2p1:RestaurantId>3</d2p1:RestaurantId>
    </d2p1:DeliveryPostCodeDto>
  </PostCodes>
  <RestaurantId>1</RestaurantId>
</SaveDeliveryPostCodesModel>

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 'SaveDeliveryPostCodesModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.