Membrane runs with Java or as Docker Container.
unzip membrane-service-proxy-5.0.0.zip
service-proxy.sh
or service-proxy.bat
in a terminal.cd membrane-service-proxy-5.0.0
./service-proxy.sh
curl
:curl localhost:2000
{"apis":[{"name":"Shop API Showcase","description":"API for REST exploration, test and demonstration. Please fell free to manipulate the resources using the POST, PUT and DELETE methods. This API acts as a showcase for REST API design. Please report errors and suggestions for design improvements to bayer@predic8.de.","url":"/shop/"}]}
Warning: If you get an error message like Bad Gateway you might need to setup a proxy server.
conf/proxies.xml
:<api port="2000">
<target url="https://api.predic8.de"/>
</api>
All HTTP trafic is routed from localhost
to api.predic8.de
.
$ docker run -p 2000:2000 predic8/membrane
Browse to http://localhost:2000 or use curl:
curl http://localhost:2000
his should yield the same response as calling https://api.predic8.de does.
More about setting up Membrane for Docker.
Try one of the tutorials to learn how to use Membrane's powerful features: