Run mock server from script instead of from cli
Closed this issue · 1 comments
ZhouJian26 commented
It will be awesome if this is possible...
const { mock } = require("@soluzioni-futura/openapi-mock-server")
const options = {
mockConfig: {
openapi: "..."
},
mockOverrides: {
routes: [
...
]
}
}
mock(options)
ZhouJian26 commented