egg-raml-console

2.0.3 • Public • Published

egg-raml-console

Standard - JavaScript Style Guide Dependency Status DevDependency Status NPM Downloads

RAML console plugin for egg.

Usage

First, install it:

npm instal egg-raml-console

Import it via config/plugin.js:

module.exports = {
  ...

  'raml-console': {
    enable: true,
    package: 'egg-raml-console'
  }

  ...
}

Configure it via config/config.<env>.js:

module.exports = {
  ...

  ramlConsole: {
    ramlPath: '/path/to/raml/dir' // default value: 'absolute path to assets/raml-examples'
    mountPath: '<routePath>', // default value: '/docs'
  }

  ...
}

Made with ❤ by m31271n

Package Sidebar

Install

npm i egg-raml-console

Weekly Downloads

8

Version

2.0.3

License

MIT

Last publish

Collaborators

  • m31271n_account