AnsweredAssumed Answered

how to declare query parameters in API service?

Question asked by Kareem.shaik7 on Dec 21, 2016
Latest reply on Dec 21, 2016 by Kareem.shaik7

how to declare query parameters in API service from Policy Manager?

 

And how to access them within the policy to check if parameter values are null?

 

Example: 

Service URL is suppose to be:

https://host:port/company/v1/employees/profile?phoneNumber=23232$emailId=sample@email.com

Method GET.

 

What are the context variables to access these query parameters. 

 

my validation with in policy is 

   If phoneNumber = null and emailId = null 

      Respond with Bad Request error message without routing to backend service.

else 

   map corresponding paramters to the backend service.

 

 

Regards

Kareem

Outcomes