Multiple api definition files with different url rewrite

Hi,

Is it possible to have different api definition files for the same listen path with different url rewrite config.

Example:

file1.json
in the proxy section -> listen_path : /test
target_url: http://localhost
url_rewrites section -> method: GET
rewrite_to: http://server1

file2.json
in the proxy section -> listen_path : /test
target_url: http://localhost
url_rewrites section -> method: POST
rewrite_to: http://server2

Is there a special config to achieve this?

Hi, the virtual endpoint could be useful for this scenario assuming you setup a single API with that listen path, check the docs here.
Also check the advanced URL rewriting feature.