Version: 2.0.0
Programmatic usage
#
Core usageThe server can be instantiated and started programmatically using the @mocks-server/core package, which does not include plugins.
You can also register your own or another existing plugins, so you could even create your custom distribution with plugins of your choice.
#
Example#
Core APInew Core([config])
#
#
Argumentsconfig
(Object): Object containing configuration properties and options as described in the configuration file chapter.
#
Core instance APIPlease read the mocksServer
API chapter to know all available methods and getters in the mocksServer
instance that the Core
class returns.