polarity-dev/openapi-mock-server

Run mock server from script instead of from cli

Closed this issue · 1 comments

It will be awesome if this is possible...

const { mock } = require("@soluzioni-futura/openapi-mock-server")

const options = {
  mockConfig: {
    openapi: "..."
  },
  mockOverrides: {
    routes: [
        ...
    ]
  }
}

mock(options)