miragejs-open-api icon indicating copy to clipboard operation
miragejs-open-api copied to clipboard

Generate server configuration

Open asantos00 opened this issue 5 years ago • 0 comments

Generate the following configuration:

const server = new Server({
  baseUrl: 'https://api-url.com/blablabla/api',
  namespace: '/v1'
});

// uses namespace v1
server.get('cenas', () => {})

server.namespace = '/v2';

// uses namespace v2
server.get('cenas', () => {})

asantos00 avatar Dec 20 '19 11:12 asantos00