WSO2 api manager specify mandatory parameter in URL pattern -


does know how use wso2 api manager specify mandatory parameter through url pattern. example, have api registered in wso2 api manager , , uri '/abc/search/?a="xx"&b="yy"', both of these 2 query parameters (a & b) optional. want make 'a' mandatory one, don't want change api logic, there anyway resolve using wso2 api manager?

in url pattern, tried '/{a}', '/?a={a}' , /{?a} before, of them did not work

from apimanager use urlmapping. can is, open api configurtaion, can found in am_home\repository\deployment\server\synapse-configs\default\api folder , edit url-mapping part url template.

eg:

url-mapping="/*"  uri-template="/{string1}/{string2}"  

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -