GET api/Public/GetAllPreferences

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of R_Preference
NameDescriptionTypeAdditional information
PreferenceID

string

Required

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

DocumentDescription

string

Required

PreferenceType

PreferenceType

Required

PreferenceItem

Collection of string

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "preferenceID": "sample string 1",
    "documentDescription": "sample string 2",
    "preferenceType": 0,
    "preferenceItem": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "preferenceID": "sample string 1",
    "documentDescription": "sample string 2",
    "preferenceType": 0,
    "preferenceItem": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfR_Preference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <R_Preference>
    <DocumentDescription>sample string 2</DocumentDescription>
    <PreferenceItem xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </PreferenceItem>
    <PreferenceType>FOOD_TYPE</PreferenceType>
    <PreferenceID>sample string 1</PreferenceID>
  </R_Preference>
  <R_Preference>
    <DocumentDescription>sample string 2</DocumentDescription>
    <PreferenceItem xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </PreferenceItem>
    <PreferenceType>FOOD_TYPE</PreferenceType>
    <PreferenceID>sample string 1</PreferenceID>
  </R_Preference>
</ArrayOfR_Preference>

multipart/form-data

Sample:
<ArrayOfR_Preference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><R_Preference><DocumentDescription>sample string 2</DocumentDescription><PreferenceItem xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:string>sample string 1</d3p1:string><d3p1:string>sample string 2</d3p1:string></PreferenceItem><PreferenceType>FOOD_TYPE</PreferenceType><PreferenceID>sample string 1</PreferenceID></R_Preference><R_Preference><DocumentDescription>sample string 2</DocumentDescription><PreferenceItem xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d3p1:string>sample string 1</d3p1:string><d3p1:string>sample string 2</d3p1:string></PreferenceItem><PreferenceType>FOOD_TYPE</PreferenceType><PreferenceID>sample string 1</PreferenceID></R_Preference></ArrayOfR_Preference>