trailsjs / sails-swagger

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

Swagger shows many false operations #32

Closed CodeJjang closed 8 years ago

CodeJjang commented 8 years ago

I have /tag/find... routes even though I didn't declare them.

Example TagController:

module.exports = {
    find: function(req, res, next) {
        validateFindRequest(req)
            .then(TagService.getTags)
            .then(function(results) {
                return res.json(results);
            })
            .catch(function(err) {
                return res.serverError(err);
            });
    }
};

All blueprints are off, I have this route:

'get /tag': 'TagController.find'

Result: swagger_fixed_cropped

Sails version 0.12.x, module version 0.5.x.

Closed: Apparently actions blueprint is true by default, I had to explicitly set it to false and now it works.