Table of Contents

Method GetActiveCategories

Namespace
Everest.Service.Catalog.Categories
Assembly
Everest.Service.dll

GetActiveCategories(CategoryLanguage?, TreeIterationOrder?)

[OperationContract]
[SwaggerWcfTag("Catalog categories", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Returns the list of active categories", Description = "Returns the list of active categories in the specified language (optional) and tree-order (optional):\n  * Supported languages (optional): [English, French, Bulgarian] (when unspecified, defaults to English).\n  * Order by options (optional): [DepthFirst, BreadthFirst] (when unspecified, no order is guaranteed).")]
[WebGet(UriTemplate = "/Active?language={language}&order={order}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.OK, Description = "Success")]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Invalid language and/or iteration option", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.InternalServerError, Description = "An unexpected error occurred while processing the request.", Type = typeof(JsonErrorMessage))]
ActiveCategoryEntryContract[] GetActiveCategories(CategoryLanguage? language = CategoryLanguage.English, TreeIterationOrder? order = null)

Parameters

language CategoryLanguage?
order TreeIterationOrder?

Returns

ActiveCategoryEntryContract[]