GET api/Food/ReadFoodTypeNames

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of R_FoodType
NameDescriptionTypeAdditional information
FoodTypeID

integer

Required

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

FoodTypeName

string

Required

FoodTypeDescription

string

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "foodTypeID": 1,
    "foodTypeName": "sample string 2",
    "foodTypeDescription": "sample string 3"
  },
  {
    "foodTypeID": 1,
    "foodTypeName": "sample string 2",
    "foodTypeDescription": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_FoodType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_FoodType>
    <FoodTypeDescription>sample string 3</FoodTypeDescription>
    <FoodTypeName>sample string 2</FoodTypeName>
    <FoodTypeID>1</FoodTypeID>
  </R_FoodType>
  <R_FoodType>
    <FoodTypeDescription>sample string 3</FoodTypeDescription>
    <FoodTypeName>sample string 2</FoodTypeName>
    <FoodTypeID>1</FoodTypeID>
  </R_FoodType>
</ArrayOfR_FoodType>

multipart/form-data

Sample:
<ArrayOfR_FoodType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_FoodType><FoodTypeDescription>sample string 3</FoodTypeDescription><FoodTypeName>sample string 2</FoodTypeName><FoodTypeID>1</FoodTypeID></R_FoodType><R_FoodType><FoodTypeDescription>sample string 3</FoodTypeDescription><FoodTypeName>sample string 2</FoodTypeName><FoodTypeID>1</FoodTypeID></R_FoodType></ArrayOfR_FoodType>