request verb - only allow GET requests

Not applicable

I want my proxy to be read-only, ie. only allow GET requests, but not POST / DELETE / PUT. Is there a policy that I can add for this to preflow?

Solved Solved
1 2 1,655
1 ACCEPTED SOLUTION

Former Community Member
Not applicable

There are two ways of doing it. One explained here: https://community.apigee.com/questions/26386/api-http-methods-granularity-within-products.html

Another: you could add a raise fault policy with a condition to execute when request.verb != GET

View solution in original post

2 REPLIES 2

Former Community Member
Not applicable

There are two ways of doing it. One explained here: https://community.apigee.com/questions/26386/api-http-methods-granularity-within-products.html

Another: you could add a raise fault policy with a condition to execute when request.verb != GET

Welcome to Apigee community @jasonbrown 🙂