We have a custom API system, with thousands of classes annotated using a custom attributes called OurApiClassAttribute
and OutApiMethodAttribute
.
We currently don’t want to use the standard asp.net methods for various reasons, but we do want to use swagger and swashbuckle for the purposes of API documentation and convenience.
We would like to write some logic that examines our class and method attributes, looks at the class and method info, and generates appropriate documentation.
I thought I was on track with IOperationsFilter
but it seems this only looks at methods which are attributed with HttpGet
or classes with ApiController
.
Is there a way to make our custom attributes discoverable to this swagger generation step?