POST api/categories/lineage?languageCode={languageCode} Authentication required

Use this method to fetch all the lineages for specified children codes. This will return the categories and their descriptions in the specified language. Note that some categories might not have a description in some languages

Request

URI Parameters

NameDescriptionTypeAdditional information
languageCode

Language represented by its ISO 639-1 Code (2 chars long)

string

Required

Body Parameters

List of categories you want all lineage for

Input : array of objects (See Model)

Input Sample

  • application/json, text/json :
  • [ { "code": "017116", "name": "Restaurants", "language": "EN", "type": "Infobel", "level": 0 }, { "code": "017116", "name": "Restaurants", "language": "EN", "type": "Infobel", "level": 0 } ]
  • application/xml, text/xml :
  • <ArrayOfCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Category> <Code>017116</Code> <CountryCode i:nil="true" /> <Language>EN</Language> <Level>0</Level> <Name>Restaurants</Name> <ParentCode i:nil="true" /> <Type>Infobel</Type> </Category> <Category> <Code>017116</Code> <CountryCode i:nil="true" /> <Language>EN</Language> <Level>0</Level> <Name>Restaurants</Name> <ParentCode i:nil="true" /> <Type>Infobel</Type> </Category> </ArrayOfCategory>

    Response

    Returns all the lineages in a specific language

    Output : array of objects (See Model)

    Ouput Sample

  • application/json :
  • 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 'Kapitol.Registered.Tools.Model.LineageCategory'. Path '[0].children'.
  • text/json :
  • 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 'Kapitol.Registered.Tools.Model.LineageCategory'. Path '[0].children'.
  • application/xml :
  • An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Kapitol.Registered.Tools.Model.LineageCategory' contains cycles and cannot be serialized if reference tracking is disabled.
  • text/xml :
  • An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Kapitol.Registered.Tools.Model.LineageCategory' contains cycles and cannot be serialized if reference tracking is disabled.