GET api/favorite/categories/{userid}

V2 - This method retrieves all favorite categories for the selected user/child.
NOTE: this method ignores the X-ChildID header.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userid

The ID for the user or child

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CategoryDetails
NameDescriptionTypeAdditional information
ID

The internal ID for this category.

integer

Required

Name

The name for this category.

string

Required

Description

The description for this category.

string

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "Name": "sample string 2",
    "Description": "sample string 3"
  },
  {
    "ID": 1,
    "Name": "sample string 2",
    "Description": "sample string 3"
  }
]

text/javascript

Sample:
[{"ID":1,"Name":"sample string 2","Description":"sample string 3"},{"ID":1,"Name":"sample string 2","Description":"sample string 3"}]

application/xml, text/xml

Sample:
<ArrayOfCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.DAL.Types">
  <CategoryDetails>
    <Description>sample string 3</Description>
    <ID>1</ID>
    <Name>sample string 2</Name>
  </CategoryDetails>
  <CategoryDetails>
    <Description>sample string 3</Description>
    <ID>1</ID>
    <Name>sample string 2</Name>
  </CategoryDetails>
</ArrayOfCategoryDetails>