trailsjs / sails-swagger

Swagger integration for sails.js
107 stars 47 forks source link

Can I omit routes/controllers and models not created in my server? #21

Closed talamaska closed 8 years ago

talamaska commented 8 years ago

Currently I see there are Models that aren't present in my server like Group and Contact. The controllers are missing in 0.5.1, but that's not the point. I don't want to see those models and controllers, they should be just for testing purposes. Could you please assist somehow?

Tronix117 commented 8 years ago

Same here, but there is a temporary fix, in your config/swagger.js file, use the following:

module.exports.swagger = {
  pkg: require('../package')
  marlinspike: {
    models: false
  }
}
talamaska commented 8 years ago

thanks

lahaxearnaud commented 8 years ago

Api is not available any more but in swagger Contact / Group are still available.