How to rewrite a Path

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

Configuration

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

Resources

ResourceLinkType
RewriterDocumentationExample
FruitShop2 APIOpenAPIAPI Spec