0

I am new in the CA API policy manager and I want to create an API in policy manager. Which assertion is used in the API policy manager? Make an API If I passed Mayank in the JSON format it should return me ur Surname

Request - {"name":"Mayank"}

Response - {"surname":"Agarwal"}

Likewise Request - {"name":"Yash"}

Response - {"surname":"Dhoni"}

If the name is not Mayank or Yash then send a response

{"error":"name not found"}

1 Answers1

0

Here i have to use Evaluate JSON assertion that will fetch the JSON value.