Getting Started with Membrane Using Java

Make sure to have Java 21 or higher installed.

Download and unzip a release. Then start it with ./membrane.sh or on Windows with membrane.cmd:

Terminal
$ unzip membrane-api-gateway-X.X.X.zip
$ cd membrane-api-gateway-X.X.X
$ ./membrane.sh
10:38:00,812  INFO 3 main ApiInfo:39 {} - Started 4 APIs:
10:38:00,813  INFO 3 main ApiInfo:41 {} -   0.0.0.0:2000 /fact  http://127.0.0.1:2000/fact
10:38:00,813  INFO 3 main ApiInfo:41 {} -   Fruit Shop API  http://127.0.0.1:2000/shop/v2/
10:38:00,813  INFO 3 main ApiInfo:41 {} -   0.0.0.0:2000  http://127.0.0.1:2000
10:38:00,813  INFO 3 main ApiInfo:41 {} -   0.0.0.0:9000  http://127.0.0.1:9000
10:38:00,814  INFO 3 main RouterCLI:457 {} - Membrane API Gateway 7.6.1 up and running!

APIs are deployed from conf/apis.yaml and ready to try.

Open the OpenAPI overview in your browser to explore and try the Fruitshop API or:

curl localhost:2000
curl localhost:2000

Next explore what you can do with the tutorials to implement your own API Gateway solution.

You Do Not Have Java?

Instead of Java run Membrane with Docker, install it as RPM or a systemd service.

Problems?

See the Troubleshooting.