GET api/Food/GetAllCollectionNames

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of R_Collection
NameDescriptionTypeAdditional information
Collection_Name_ID

integer

Required

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

CollectionName

string

None.

Description

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "collection_Name_ID": 1,
    "collectionName": "sample string 2",
    "description": "sample string 3"
  },
  {
    "collection_Name_ID": 1,
    "collectionName": "sample string 2",
    "description": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_Collection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_Collection>
    <CollectionName>sample string 2</CollectionName>
    <Description>sample string 3</Description>
    <Collection_Name_ID>1</Collection_Name_ID>
  </R_Collection>
  <R_Collection>
    <CollectionName>sample string 2</CollectionName>
    <Description>sample string 3</Description>
    <Collection_Name_ID>1</Collection_Name_ID>
  </R_Collection>
</ArrayOfR_Collection>

multipart/form-data

Sample:
<ArrayOfR_Collection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_Collection><CollectionName>sample string 2</CollectionName><Description>sample string 3</Description><Collection_Name_ID>1</Collection_Name_ID></R_Collection><R_Collection><CollectionName>sample string 2</CollectionName><Description>sample string 3</Description><Collection_Name_ID>1</Collection_Name_ID></R_Collection></ArrayOfR_Collection>