POST api/Food/UpdateFoodItem

Request Information

URI Parameters

None.

Body Parameters

U_Food_Item
NameDescriptionTypeAdditional information
FoodItemID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

FoodItemEthnicityName

string

Required

FoodImageID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

FoodItemTypeName

string

Required

FoodItemKitchenID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

FoodItemName

string

Required

FoodItemDescription

string

Required

FoodItemStorage

string

Required

FoodItemWarnings

string

Required

Ingrediants

string

Required

SpicyLevel

integer

Required

FoodItemLife

integer

Required

FoodItemOtherInfo

string

Required

FoodCollectionNameID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

Request Formats

application/json, text/json

Sample:
{
  "foodItemID": 1,
  "foodItemEthnicityName": "sample string 2",
  "foodImageID": 3,
  "foodItemTypeName": "sample string 4",
  "foodItemKitchenID": 5,
  "foodItemName": "sample string 6",
  "foodItemDescription": "sample string 7",
  "foodItemStorage": "sample string 8",
  "foodItemWarnings": "sample string 9",
  "ingrediants": "sample string 10",
  "spicyLevel": 11,
  "foodItemLife": 12,
  "foodItemOtherInfo": "sample string 13",
  "foodCollectionNameID": 14
}

application/xml, text/xml

Sample:
<U_Food_Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <FoodCollectionNameID>14</FoodCollectionNameID>
  <FoodImageID>3</FoodImageID>
  <FoodItemDescription>sample string 7</FoodItemDescription>
  <FoodItemEthnicityName>sample string 2</FoodItemEthnicityName>
  <FoodItemKitchenID>5</FoodItemKitchenID>
  <FoodItemLife>12</FoodItemLife>
  <FoodItemName>sample string 6</FoodItemName>
  <FoodItemOtherInfo>sample string 13</FoodItemOtherInfo>
  <FoodItemStorage>sample string 8</FoodItemStorage>
  <FoodItemTypeName>sample string 4</FoodItemTypeName>
  <FoodItemWarnings>sample string 9</FoodItemWarnings>
  <Ingrediants>sample string 10</Ingrediants>
  <SpicyLevel>11</SpicyLevel>
  <FoodItemID>1</FoodItemID>
</U_Food_Item>

multipart/form-data

Sample:
<U_Food_Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><FoodCollectionNameID>14</FoodCollectionNameID><FoodImageID>3</FoodImageID><FoodItemDescription>sample string 7</FoodItemDescription><FoodItemEthnicityName>sample string 2</FoodItemEthnicityName><FoodItemKitchenID>5</FoodItemKitchenID><FoodItemLife>12</FoodItemLife><FoodItemName>sample string 6</FoodItemName><FoodItemOtherInfo>sample string 13</FoodItemOtherInfo><FoodItemStorage>sample string 8</FoodItemStorage><FoodItemTypeName>sample string 4</FoodItemTypeName><FoodItemWarnings>sample string 9</FoodItemWarnings><Ingrediants>sample string 10</Ingrediants><SpicyLevel>11</SpicyLevel><FoodItemID>1</FoodItemID></U_Food_Item>

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

Response Information

Resource Description

DBStatus
NameDescriptionTypeAdditional information
Type

DBOperation

None.

Message

Collection of DBMessageType

None.

InnerException

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "type": "ERROR",
  "message": [
    "SUCCESSFULLY_DATA_INSERTED",
    "SUCCESSFULLY_DATA_INSERTED"
  ],
  "innerException": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InnerException>
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure">
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
  </Message>
  <Type>ERROR</Type>
</DBStatus>

multipart/form-data

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></InnerException><Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure"><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType></Message><Type>ERROR</Type></DBStatus>