-
I have controllers under the /api namespace that are primarily what I want to have included in the docs, but there are some that I might want to skip. How can I control which controllers are listed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi! I understand. That is a missing feature of OasRails, I was looking, and you only can exclude the routes by the name space. I mean, I think you already set the namespace So I ask you which could be the best approach?
I think the first works for you, but I want to hear your opinion |
Beta Was this translation helpful? Give feedback.
How would you detect if an endpoint render HTML or json/xml/csv ? I made OasRails thinking in api only apps.
This is the reason you see this turbo routes too, I try to exclude some common routes, but I think I missed it too.
And yes, I think the
@include
or@exclude
tag comment at controller level can be a great solution, but technically is a bit hard to implement because currently OasRails just read Method’s comments and not Controller’s comments.Thinking about the turbo native routes included in the documentation. Are this routes inside the namespace
api
? I mean, OasRails should exclude any route outside the namespace you configure in the initializer, if this is not doing that then pro…