0

I am using apigee to allow only GET and PATCH request. I want to raise a fault for all other requests with error code 403. For that I have used Raised Fault policy.

    <PreFlow name="PreFlow">
       <Request>
           <Step>
              <Name>RF-only-GET-PATCH</Name>
                <Condition>(request.verb !="GET") || (request.verb !="PATCH")</Condition>
                </Step>
               </Request>
            <Response/>
        </PreFlow>

    Also tried following combinations :

     <Condition>(request.verb !="GET") || (request.verb !="PATCH")</Condition>
     <Condition>(request.verb !="GET") or (request.verb !="PATCH")</Condition>
     <Condition>((request.verb !="GET") || (request.verb !="PATCH"))</Condition>

this is not worked.

What should be the condition to raise the fault : RF-only-GET-PATCH ?

Alex
  • 3
  • 4
  • Do you have all of your Proxy Endpoints defined in the Apigee proxy, or do you just pass the request on to the target endpoint? – Dan H May 14 '19 at 13:11
  • I got the answer : https://community.apigee.com/questions/68731/how-to-allow-only-get-and-patch-request-using-apig.html?childToView=68736#answer-68736 – Alex May 14 '19 at 15:30

0 Answers0