GET api/Categories/GetSiteCategories

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of SiteCategoryModel
NameDescriptionTypeAdditional information
CategoryID

integer

None.

Name

string

None.

ShowOnNavigation

boolean

None.

URL

string

None.

PageClass

string

None.

SubCategories

Collection of SiteCategoryModel

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'MoodAPI.Models.SiteCategoryModel'. Path '[0].SubCategories'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'MoodAPI.Models.SiteCategoryModel'. Path '[0].SubCategories'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'MoodAPI.Models.SiteCategoryModel' contains cycles and cannot be serialized if reference tracking is disabled.