Forum Discussion

cadmium's avatar
14 years ago

REST Signing and Path

Similar to viewtopic.php?f=5&t=3589&p=12623&hilit=rest+parameter#p12623



I am trying to sign the rest request. Once in the groovy script though the resource path (request.getPath() ) still contains the unexpanded template parameters. This path is required in the sig.

(e.g. /mypath/{param}/ instead of /mypath/123)


Is there a method to get (or expand myself) the template parameters in the path so my signing function can sign the right thing?

Alternately Is there a way to use a property notation to refer to other parameters when setting up the call to the sig (so I can get the real path)? (I am thinking of a work around where my signing path contains a string that expands to be the templated path)
No RepliesBe the first to reply