Spring annotation with path variables.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Spring annotation with path variables.

jadetang
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 | Threaded
Open this post in threaded view
|

Re: Spring annotation with path variables.

Brian Demers
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 <[hidden email]> 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/