There isn't currently, there is a related issue open for this, but not
specific for JAX-RS.  You could create a portable extension though, or
modify the Shiro JAX-RS one and send a PR?
https://github.com/apache/shiro/tree/master/support/jaxrs/src/main/java/org/apache/shiro/web/jaxrs

On Sat, Oct 27, 2018 at 7:33 AM jadetang <[email protected]> wrote:

> Hi:
>    is it possible to use the shiro annotation with path variables?
> Something
> like
>
> @DeleteMapping(path = "/{id}")
> @ResponseStatus(value = HttpStatus.NO_CONTENT)
> @RequiresPermissions("troopers:{id}:delete:")
> public void deleteTrooper(@PathVariable("id") String id)
>
>
>
> --
> Sent from: http://shiro-user.582556.n2.nabble.com/
>

Reply via email to