Closed ronaldwalcott closed 3 years ago
Hi,
If you can group all your API endpoints that uses AutoWrapper, then you can try setting the WrapWhenApiPathStartsWith
and it should ignore the rest of the endpoint.
https://github.com/proudmonkey/AutoWrapper#wrapwhenapipathstartswith
Good day
I have been using the wrapper as below
app.UseApiResponseAndExceptionWrapper(new AutoWrapperOptions { IgnoreWrapForOkRequests = true, });
but after implementing OData for some of my APIs I get the below message when calling the $metadata endpoint
This page contains the following errors: error on line 1 at column 1: Document is empty
commenting out the code allows the XML metadata to display
Is there a way to ignore this endpoint and still use the wrapper on other endpoints?
Thanks