How to rewrite a Path

In Membrane, requests paths can be modified using the rewriter element.

Ingredients

Configuration

<api port="2000">
    <rewriter>
        <map from="^/store/(.*)" to="/shop/v2/$1" />
    </rewriter>
    <target url="https://api.predic8.de" />
</api>

Resources

Rewriter Documentation Example
FruitShop2 API OpenAPI