Open AdisonCavani opened 2 years ago
I like that, too! I've seen FastEndpoints but didn't notice this. I wonder if they did anything to make it work, or if it's just a Swagger feature we can just use in the same manner?
I don't think it's a Swagger feature. I've looked at a source code and this is what I found:
Currently, you can document endpoint using
SwaggerOperation
attribute aboveHandleAsync
method:Personally, I don't like this approach. Another library (FastEndpoints) has interesting alternative:
which produces this Swagger documentation:
IMO this is much cleaner, because I don't make my endpoints clogged up with comments. Full project with this solution is here.
Is something like this possible with this library? If not, I'm passing it to you as a feature request.