For GET requests of the from "/dostuff/{id}" the httpservletrequest is only providing the actual path: "/dostuff/12345". I am wondering if there is a way to replace back 12345 with the placeholder variable while only using the httpservletrequest, such that I can get the raw path: "/dostuff/{id}".
Providing some context as this is kind of a weird request...
Working on a legacy service... I need to log the request counts, failures, along with their status codes. This is already done in the code but it is on a global level for all API's, it just says: "Request.4XX" or "Request.2XX" for all requests.
What I want to do is place the endpoint in there to provide more granular metrics: "Request.dostuff.id.4XX"
The place where I can log, I only have access to httpservletrequest and httpservletresponse. Is there a way to do this from httpservletrequest?