-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add options to select which routes should be documented #8
Comments
I think this would be good; a PR would be appreciated. |
I would love to work on it! :) I proposed at small PR on Sails that would make it very easy to implement. This PR would also allow to simplify the current code and to implement many other functionalities (to disable or enrich the documentation for some specific routes for example). Unfortunately, I don't have feedback about it since three weeks. I guess the core team is very busy nowadays. But as soon as I know if I can rely on that PR, I'll work on it. Thanks |
@AlexisNo looks like the PR was merged balderdashy/sails#3326, waiting to see this implemented |
@moisesrodriguez Cool ! I will try to find some time to work on it this week. |
Looking forward to it, just bumped into it myself too ;) |
Sorry, I began to do some refactoring to achieve that, but I think I will need another little modification in the blueprint hook to archive that correctly. And theses days I really had no time to work on it :( |
any news about this feature? |
+1 |
any updates on this ? |
Hi, any update ? Is there an option to have only the manual routes to be documented ? Also, any way to remove a whole model documentation to be exposed ? |
@lucj I've done some bug fixes and made this available through Check de Readme and you should get this solved |
thanks a lot, I'll check that. On Wed, Sep 7, 2016 at 4:19 PM, José Rocha [email protected] wrote:
|
Today, all routes are added to the swagger document.
A user should be allowed to select what kind of routes he wants to document:
One may want to document the REST API of the application and not necessarily want to expose the documentation of the requests to get HTML pages.
It could be an array with these default values:
Maybe the options could be limited to
['rest', 'shortcuts', 'actions']
where 'actions' stands forblueprint_actions
andmanual
.I guess it would be easier to implement this when sails.getRoutes() is available.
The text was updated successfully, but these errors were encountered: