Define a prefixed API

Want to prefix your mock server routes? Learn how to do it with Mockoon

Get Mockoon latest version and start mocking!


Prefixing your mock API may be technically required or you may want to keep the same prefix as the server you are mocking.

In order to prefix all your REST API routes, fill the “prefix” input at the top of environment options:

Add prefix

The prefix will appear under your environment name in the environments list and all your environment's routes will now be prefixed and available at the following address http://localhost:port/prefix/myroute instead of http://localhost:port/myroute.

Join Mockoon's mailing list to receive latest updates