How to handle response - single proxy same base path for GET and POST request

Not applicable

Hi,

I need some guidance on how to achieve the requirement.

1. Need to create one proxy for both GET and POST request and handle the responses from the target differently..

For example

GET - /dogs

POST -/dogs with details in the body

Is this possible? If so can you please direct me with the best practises to achieve the same

Thanks in advance

Solved Solved
0 3 194
1 ACCEPTED SOLUTION

Not applicable

@Deepa , Using flows you can achieve that. refer this http://docs.apigee.com/api-services/content/understanding-flows-and-resources.
You can put conditions for each flow (request/response) like this

 <Condition>(proxy.pathsuffix MatchesPath "/dogs") and (request.verb = "POST")</Condition>

View solution in original post

3 REPLIES 3

Not applicable

@Deepa , Using flows you can achieve that. refer this http://docs.apigee.com/api-services/content/understanding-flows-and-resources.
You can put conditions for each flow (request/response) like this

 <Condition>(proxy.pathsuffix MatchesPath "/dogs") and (request.verb = "POST")</Condition>

Thanks will try it out

@Deepa ,

Find more about API Proxy flows in this 4MV4D (4 Minute Videos 4 Developers) here.