Layer7 API Management

 View Only
  • 1.  "CustomMetaData" is empty in  ${apiKeyRecord.xml} of  "Lookup API Key"

    Posted Feb 28, 2018 07:17 AM

    When I display the data saved in  ${apiKeyRecord.xml} by "Lookup API Key"  assertion, below XML is displayed. But in the XML i observed that CustomMetaData is empty. I was expecting the "custom fields" in this section. Can some one help me understand why is this section empty?

    Note: I have created the application custom fields in portal and given the value.


    <l7:ApiKey xmlns:l7="">


    <l7:Api apiId="d175225e-01a3-48ed-a0dd-123123124" planId="1db2438918912f57123123"/>

  • 2.  Re: "CustomMetaData" is empty in  ${apiKeyRecord.xml} of  "Lookup API Key"
    Best Answer

    Posted Mar 21, 2018 12:23 PM

    I have done a bit of research on this and found that the API Plan XML that is by default sent to the APIGW from the portal is missing the information on custom properties completely. As the default plugin is using (a fairly undocumented) templating engine and the controller code is (fairly well) obfuscated I could not move any further from there.


    I am considering building a custom API that would feed the portlaman with my custom XML to load also custom data to the APIKey record. Will post it here if I manage :-)