POST api/locations/{countryCode}/lineage?languageCode={languageCode} Authentication required

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

Request

URI Parameters

NameDescriptionTypeAdditional information
countryCode

Country represented by its ISO 3166-1 alpha-2 Code (2 chars long)

string

Required

languageCode

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

string

Required

Body Parameters

List of locations you want the lineage for

Input : array of String

Input Sample

  • application/json, text/json :
  • [ "sample string 1", "sample string 2" ]
  • application/xml, text/xml :
  • <ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <string>sample string 1</string> <string>sample string 2</string> </ArrayOfstring>

    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.LineageLocation'. 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.LineageLocation'. 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.LineageLocation' 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.LineageLocation' contains cycles and cannot be serialized if reference tracking is disabled.