0

我使用 apigee 只允许 GET 和 PATCH 请求。我想为错误代码为 403 的所有其他请求引发错误。为此,我使用了引发错误策略。

    <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.

引发故障的条件应该是什么:RF-only-GET-PATCH?

4

0 回答 0