Can i create a key value map using query param

Can i set key value map using query param?

0 5 256
5 REPLIES 5

Hi @HIMADRI BHATTACHARJEE, yes you can create KVM using query param.

<Put override="false">
        <Key>
            <Parameter>username</Parameter>
        </Key>
        <Value ref="request.queryparam.name" />
    </Put>

Here is a sample proxy - demo-kvm-rev1-2019-07-30.zip

Just create a KVM store with "KVM-Demo-data" and execute the proxy.

Sry my question was mapidentifier can be created by query param?

You can certainly use management API to do that.

You should not call the Management API from an API Proxy.

https://docs.apigee.com/api-platform/antipatterns/invoking-management

Also, this seems like a bad pattern to create a KVM based on query parameter. Is there a particular use case that's trying to be addressed?

I meant was to call management API directly not from the proxy..