How to add API version to Apiary Mock Server

2019-07-21 11:04发布

问题:

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

回答1:

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/