Skip to content

How to filter and customise which API endpoints are exposed #177

@rockgecko-development

Description

@rockgecko-development

I needed a way to customise which API endpoints are exposed, so I created a custom DocumentHelper and overrode List<MethodInfo> GetHttpTriggerMethods(Assembly assembly), providing my own custom implementation. I also needed to add a custom OpenApiHttpTriggerContext. This works great for me on v0.5.1 - here's a gist if anyone would like to see how: https://gist.github.com/rockgecko-development/02b53d05eab230e3989fce2c2ab5ba80

I see that following the out-of-process refactoring in #142 , this method has been removed from IDocumentHelper interface and put into an extension function. How can I override this now, without also reimplementing all of Document as well?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions