Closed chrisknoll closed 1 year ago
It appears, in this case, that trying to invoke that endpoint in the UI (the clear server cache button) results in a 404...so the answer here is that we can't find the endpoint in code because it doesn't exist.
Can anyone provide any insight as to why this button in the configuration screen exists, and if there ever was a cache/refresh endpoint?
Expected behavior
It should be easy to find which class/method is handling a request. For example:
return httpService.doGet(config.webAPIRoot + 'cache/clear')
Means that there is an endpoint
/WebAPI/cache/clear
that will be invoked when that URL is requested. This method isget
and we have annotations that mark methods to respond to various HTTP verbs with specified paths.Actual behavior
Can not easily navigate to the implementation of this endpoint.
Steps to reproduce behavior
Observe, there are no /cache endpoints displayed.
Our code needs to be easy to navigate, and considering it is simply and application that responds to HTTP requests, it should be extremely easy to find out which method is handling a specific HTTP endpoint.