need to specify verb(post,get..) of the target url while api proxy creation or automatically api proxy knows ?

Hi,

if while creating api proxy for get, post restful api routes we need to specify verb(in flow variables?) or by default it knows kindly let me know.

0 2 346
2 REPLIES 2

"It knows"

Apigee Edge acts as an HTTP Proxy. It receives requests, and ... then creates a second outbound request to the target you've configured.

If you make no further configuration changes, then the outbound (southbound?) request is a copy of the inbound request, including verb, path, headers, and payload, but not including TLS identity.

But there are options for you to change that behavior:

  • If you wish, you can create conditional flows within an API Proxy, to "whitelist" or "blacklist" certain verbs or paths, or combinations of verb & path.
  • Another option is to "map" a specific inbound verb + path + payload to a different verb + path + payload for the southbound request. For example you could map a GET /foo to a POST /bar. People often use this capability when they want to wrap an existing SOAP service in a RESTful interface.
  • You can also configure your API Proxy to reject inbound requests for other reasons - such as a missing required header, or ... an invalid token, or.... arriving from a blacklisted IP address, and so on.

Because you have all these options, I sometimes say that Apigee Edge acts as a smart, configurable HTTP Proxy.

Thank you.