If you wonder how to pass an URL path parameter to your custom REST endpoint in Splunk, please have a look: