Search code examples
apiary.ioapiary

How to add API version to Apiary Mock Server


Is there any way to add API version to Apiary Mock Server?

Ex.: http://private-XXXXX-apiname.apiary-mock.com/v1/mocks/1?school_id=1


Solution

  • Yes, when declaring HOST, you can append suffix to it and that is then propagated as prefix to all resources:

    FORMAT: 1A HOST: http://api.example.tld/v1/