yixing1337 opened a new pull request #369:
URL: https://github.com/apache/pulsar-manager/pull/369


   Fixes #ISSUE-361
   
   ### Motivation
   Pulsar manager's swagger does not work, so I try to fix this issue.
   
   ### Modifications
   1. Swagger urls can't be accessed because the interceptors  blocked them, so 
I modified the interceptors to allow swagger urls.
   2. I added a swagger configration in `application.properties`, thus, if you 
want to use swagger in development environment, you can set the value `true`. 
And  if you don't want to enable swagger in production environment, you can set 
the value `false`.
   3. I modified the `SwaggerConfig` class, because swagger need some 
authorization infomation, otherwise it will receive 401 code in response header.
   4. I modified the README.md to show how to use swagger, and added some 
images in docs.
   5. Now the swagger can work correctly.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the `./gradlew build` checks.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to