feathersjs-ecosystem / feathers-swagger

Add documentation to your FeatherJS services and feed them to Swagger UI.
MIT License
225 stars 62 forks source link

exclude #96

Closed sarkistlt closed 6 years ago

sarkistlt commented 6 years ago

is it possible to exclude certain services?

Pogix3m commented 6 years ago

use ignore in swagger's config

bravo-kernel commented 6 years ago

For future visitors. To ignore e.g. the authentication and projects endpoints:

app.configure(swagger({
  docsPath: '/docs',
  uiIndex: true, // src/docs.html
  info: {
    title: 'A test',
    description: 'A description'
  },
  ignore: {
    tags: ['authentication', 'projects']
  }
}));