问题
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/
来源:https://stackoverflow.com/questions/30245487/how-to-add-api-version-to-apiary-mock-server