Request filter stops swagger ui  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Request filter stops swagger ui  Topic is solved

Postby SBarnes » Fri Oct 19, 2018 9:42 am

I had added a request filter to the API to introduce logging to the API, what I found as this the stopped the Swagger UI from working, what I found I then needed to do was check the URI and bail out if the request was from Swagger such as

Code: Select all
                  string uristr = req.AbsoluteUri;
                  if(uristr == "http://localhost:81/openapi")
                  {
                     return;
                  }                  


I am posting this here in case any one runs into a similar issue.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1620
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Return to REST API

Who is online

Users browsing this forum: No registered users and 2 guests