José Rocha

Results 8 comments of José Rocha

You can build your custom route like this: `'POST /api/v2/products': { controller: 'products', action: 'create', swagger: { methods: ['POST'], summary: 'Create Products', description: 'Create Products ... bla bla bla', produces:...

Hi guys, I've forked the project, made a small enhancement on the response code for put requests, and published a npm release. Anyone interested and get it here: [https://www.npmjs.com/package/sails-magik-swagger](url)

I've published an updated npm package. npm install sails-magik-swagger

@lucj I've done some bug fixes and made this available through [magik-sails-swagger](https://github.com/Magikevolution/sails-magik-swagger) Check de Readme and you should get this solved

Hi @varunsingh9, Try something like this: `'GET /api/commonQuestions': { controller: 'CommonQ', action: 'index', swagger: { methods: ['GET'], summary: 'gets Common Qs', description: 'common questions 11', produces: [ 'application/json' ], tags:...

@rekdave you must reference the controller like this: ` controller: 'something', ` Note that the controller name must not include the ending "Controller" part. Hope this helps.

Hi guys, I've forked the project, made a small enhancement on the response code for put requests, and published a npm release. Get it here: [https://www.npmjs.com/package/sails-magik-swagger](https://www.npmjs.com/package/sails-magik-swagger)

Thanks @tonytamps, I've corrected the error on my post. [NPM Package](https://www.npmjs.com/package/sails-magik-swagger) You can also just do `npm install sails-magik-swagger`