POST api/Products/Categories

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

CategoriesResult
NameDescriptionTypeAdditional information
Errors

APIErrors

None.

Categories

Collection of Category

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 'Mastersoft.Ecommerce.Entities.Category'. Path 'Categories[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 'Mastersoft.Ecommerce.Entities.Category'. Path 'Categories[0].SubCategories'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[Mastersoft.Ecommerce.Entities.Category, Mastersoft.Ecommerce.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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 'System.Collections.Generic.List`1[[Mastersoft.Ecommerce.Entities.Category, Mastersoft.Ecommerce.Entities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.