How to use swagger in actionHero

115 views
Skip to first unread message

SANMOY PAUL

unread,
Aug 4, 2016, 2:03:16 AM8/4/16
to actionHero.js
How can I use swagger in actionHero so that my actions/api gets appeared in swagger

Evan Tahler

unread,
Aug 4, 2016, 2:36:18 AM8/4/16
to SANMOY PAUL, actionHero.js

On Wed, Aug 3, 2016 at 11:03 PM SANMOY PAUL <sanm...@gmail.com> wrote:
How can I use swagger in actionHero so that my actions/api gets appeared in swagger

--
You received this message because you are subscribed to the Google Groups "actionHero.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to actionhero-j...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Message has been deleted
Message has been deleted
Message has been deleted

SANMOY PAUL

unread,
Aug 4, 2016, 5:45:16 AM8/4/16
to actionHero.js, sanm...@gmail.com
How can I add headers in swagger

SANMOY PAUL

unread,
Aug 4, 2016, 7:03:41 AM8/4/16
to actionHero.js, sanm...@gmail.com
how can I add custom headers in action-hero swagger

SANMOY PAUL

unread,
Aug 8, 2016, 5:40:32 AM8/8/16
to actionHero.js, sanm...@gmail.com
How can I hide an action from appearing in swagger

Evan Tahler

unread,
Aug 8, 2016, 11:45:39 AM8/8/16
to actionHero.js, sanm...@gmail.com
The README tells you about the configuration options, one of which includes "ignoreRoutes", which will allow you to hide certain actions.
Regarding custom headers, that's not something that the plugin currently supports.  Open a GitHub issue on the project here: https://github.com/supamii/ah-swagger-plugin/issues

SANMOY PAUL

unread,
Aug 8, 2016, 12:48:21 PM8/8/16
to actionHero.js
In post call I have there is a field named field1 which is mandatory to be provided in the body,which is mentioned as inputs field1:{required: true} but in swagger this input field is going as query parameter.
When I am mentioning it in model schema it is going in body as well as quey parameters.
I want to mention only in body not as query parameters

Evan Tahler

unread,
Aug 8, 2016, 12:51:14 PM8/8/16
to actionHero.js
These sound like issues you are having with the ah-swagger-plugin, not ActionHero in general.  
The appropriate channel for issues with a package/plugin is probably creating a GithHub issue on the appropriate project's page: https://github.com/supamii/ah-swagger-plugin/issues

SANMOY PAUL

unread,
Aug 8, 2016, 2:44:20 PM8/8/16
to actionHero.js
Also I have put call in order to upload a file,I cannot change the content-type to applucation/binary instead of application/json and also the option to choose file is not appearing.Please help
Reply all
Reply to author
Forward
0 new messages