Membrane runs with Java or as Docker Container.
unzip membrane-service-proxy-5.X.X.zip
service-proxy.sh
or service-proxy.bat
in a terminal.
cd membrane-service-proxy-5.X.X
./service-proxy.sh
curl
:
curl localhost:2000
{
"apis": [
{
"name": "Shop API Showcase",
"description":"API for REST exploration, test and demonstration. Feel free to manipulate the resources using the POST, PUT and DELETE methods. This API acts as a showcase for REST API design.",
"url":"/shop/v2/"
}
]
}
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
This should yield the same response as calling https://api.predic8.de does.
More about setting up Membrane for Docker.
proxies.xml
file. For example configurations and tutorials, visit Membrane API Gateway. jbang org.membrane-soa:starter:5.7.0 -c "path/to/proxies.xml"
Note: Check for the latest releases and updates on the official Maven Repository for the most recent version of Membrane.
Try one of the tutorials to learn how to use Membrane's powerful features: