I'm trying to use apigeetool but I got "Error: Proxy base directory . does not exist". Can you help me to solve it?
* config tree
. ├── deploy-proxy-example.xml ├── policies ├── proxies │ └── default.xml └── resources └── default.xml
* deploy-proxy-example.xml
<APIProxy name="deploy-proxy-example"> <Description>Deploy Simple Proxy Example</Description> </APIProxy>
* proxies/default.xml
<ProxyEndpoint name="default"> <PreFlow> </PreFlow> <HTTPProxyConnection> <BasePath>/mocktarget_key</BasePath> <VirtualHost>default</VirtualHost> <VirtualHost>secure</VirtualHost> </HTTPProxyConnection> <RouteRule name="default"> <TargetEndpoint>default</TargetEndpoint> </RouteRule> </ProxyEndpoint>
* resources/default.xml
<TargetEndpoint name="default"> <HTTPTargetConnection> <URL>http://mocktarget.apigee.net/</URL> </HTTPTargetConnection> </TargetEndpoint>
* apigeetool command
$ cd deploy-proxy-example $ apigeetool deployproxy -u 'xxx' -p 'xxx' -o 'xxx-eval' -e 'test' -n 'deploy-proxy-example' -d .
Solved! Go to Solution.
I found the reason. apiproxy directory was required.
. └── apiproxy ├── deploy-proxy-example.xml ├── policies ├── proxies │ └── default.xml └── resources └── default.xml