GET api/Preferences/Definitions

Get a dictionary of preference definitions (name, value, title, etc.)

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Dictionary of string [key] and DefinitionGroup [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": {
    "Title": "sample string 1",
    "Feature": 0,
    "Preferences": {
      "sample string 1": null,
      "sample string 2": null
    }
  },
  "sample string 2": {
    "Title": "sample string 1",
    "Feature": 0,
    "Preferences": {
      "sample string 1": null,
      "sample string 2": null
    }
  }
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'CaringVillage.Utilities.Preferences+Descriptor' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'CaringVillage.Utilities.Preferences+Descriptor' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.