POST api/SaveIngredients?ItemID={ItemID}&hotelid={hotelid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ItemID

string

Required

hotelid

string

Required

Body Parameters

item_ingredients
NameDescriptionTypeAdditional information
ingredientid

string

None.

itemid

string

None.

qty

decimal number

None.

hotelid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ingredientid": "sample string 1",
  "itemid": "sample string 2",
  "qty": 3.0,
  "hotelid": "sample string 4"
}

application/xml, text/xml

Sample:
<item_ingredients xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InventoryAPI.Models">
  <hotelid>sample string 4</hotelid>
  <ingredientid>sample string 1</ingredientid>
  <itemid>sample string 2</itemid>
  <qty>3</qty>
</item_ingredients>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.