I want to check the request verb and if it satisfies the condition only then the policies will execute otherwise it will return some error(may be using Raise fault policy). I am not using any flow here. My preflow is:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProxyEndpoint name="default">
<Description/>
<FaultRules/>
<PreFlow name="PreFlow">
<Request>
<Step>
<Name>verify-api-key</Name>
</Step>
<Step>
<Name>EV-GetStartDate</Name>
</Step>
<Step>
<Name>AM-AssigningDate</Name>
</Step>
</Request>
<Response>
<Step>
<Name>JavaScript-1</Name>
</Step>
</Response>
</PreFlow>
<PostFlow name="PostFlow">
<Request/>
<Response/>
</PostFlow>
<Flows/>
<HTTPProxyConnection>
<BasePath>/auth</BasePath>
<Properties/>
<VirtualHost>secure</VirtualHost>
<VirtualHost>default</VirtualHost>
</HTTPProxyConnection>
<RouteRule name="default">
<TargetEndpoint>default</TargetEndpoint>
</RouteRule>
</ProxyEndpoint>
How to do this?
Thanks.