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 ?
Answer by Siddharth Barahalikar
·
May 13, 2019 at 06:39 PM
Did you try using this?
<Condition>(request.verb !="GET") and (request.verb !="PATCH")</Condition>
How to add multiple specs to one api product? 1 Answer
HTML Encoded characters in Apigee Developer Monetization pages. How to fix same ? 1 Answer
Mock Proxy deployment error:get api returned status 403 0 Answers
Apigee Developer Portal - Monetization - Company Creation - Restriction ? 0 Answers
How do I scrape a YouTube channel for upload information? 1 Answer