You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
/public/swagger.json -> should return the swagger definition for resource under /public
/private/swagger.json -> should return the swagger definition for resource under /private
If you use ApiHelpController.getResource("/public") in one endpoint and ApiHelpController.getResource("/private") in the other, it won't work because there is a cache that keeps the Swagger definition and this cache is shared whatever the docRoot you use (/public or /private in this case).
The responsible code is the following in ApiListingCache:
Hello,
Imagine you have 2 endpoints:
/public/swagger.json
-> should return the swagger definition for resource under/public
/private/swagger.json
-> should return the swagger definition for resource under/private
If you use
ApiHelpController.getResource("/public")
in one endpoint andApiHelpController.getResource("/private")
in the other, it won't work because there is a cache that keeps the Swagger definition and this cache is shared whatever the docRoot you use (/public
or/private
in this case).The responsible code is the following in
ApiListingCache
:IMHO, we should have a different cache per
docRoot
value.The text was updated successfully, but these errors were encountered: