POST api/ingredient/SaveIngredient

Add / Modify ingredient details

Request Information

URI Parameters

None.

Body Parameters

IngredientViewModel
NameDescriptionTypeAdditional information
IngredientId

integer

None.

IngredientName

string

Required

Amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "IngredientId": 1,
  "IngredientName": "sample string 2",
  "Amount": 3.1
}

application/xml, text/xml

Sample:
<IngredientViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Data.Model">
  <Amount>3.1</Amount>
  <IngredientId>1</IngredientId>
  <IngredientName>sample string 2</IngredientName>
</IngredientViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.