在维护Key Value Map Operations策略时,增加GET如下策略,
<!– Key/value pairs can be stored, retrieved, and deleted from named existing maps by configuring this policy by specifying PUT, GET, or DELETE operations –>
<!– mapIdentifier refers to the name of the key value map –>
<KeyValueMapOperations mapIdentifier="urlMapper" async="true" continueOnError="false" enabled="true" xmlns="http://www.sap.com/apimgmt">
<!– PUT stores the key value pair mentioned inside the element –>
<Get assignTo="request.queryparam.ee" >
<Key>
<Parameter>bb</Parameter>
</Key>
</Get>
<!– the scope of the key value map. Valid values are environment, organization, apiproxy and policy –>
<Scope>apiproxy</Scope>
</KeyValueMapOperations>
表示在使用时把传入参数bb的值,传递给ee的值。最张结果如图。