Getting a 404 error after creating an API Proxy : https://xcelenergy.apigee.com/mockresponse
How to create a no target mock response ?
When I need to do something like that, I create what I call a "loopback proxy" with no target.
An example is attached.
The proxyendpoint looks like this:
<ProxyEndpoint name="endpoint1">
<HTTPProxyConnection>
<BasePath>/loopback-1</BasePath>
<VirtualHost>secure</VirtualHost>
</HTTPProxyConnection>
<Flows>
<Flow name="flow1">
<Request>
</Request>
<Response>
<Step>
<Name>AM-Response</Name>
</Step>
</Response>
<Condition>(proxy.pathsuffix MatchesPath "/t1") and (request.verb = "GET")</Condition>
</Flow>
<Flow name="unknown request">
<Request>
<Step>
<Name>RF-UnknownRequest</Name>
</Step>
</Request>
<Response>
</Response>
</Flow>
</Flows>
<RouteRule name="NoRouteRule"/>
</ProxyEndpoint>