Vaibhav Dhawan
2016-03-17 13:10:11 UTC
Hello,
Looking for a way to decide a json view on runtime based on certain
conditions with dw 0.9.2. Example
if role is user, return userview.class
if role is admin, return adminview.class
I could see that MappingJacksonValue class provides a similar feature in
spring boot and mvc. What would be the corresponding thing for dropwizard?
I have tried role based annotations on the entities/dto's but those doesnt
seem to work with dropwizard(not sure how to set security filtering feature
with dw).
I am happy with views implementation, just if i could programmatically
decide the view to be returned in my resource.
Looking for a way to decide a json view on runtime based on certain
conditions with dw 0.9.2. Example
if role is user, return userview.class
if role is admin, return adminview.class
I could see that MappingJacksonValue class provides a similar feature in
spring boot and mvc. What would be the corresponding thing for dropwizard?
I have tried role based annotations on the entities/dto's but those doesnt
seem to work with dropwizard(not sure how to set security filtering feature
with dw).
I am happy with views implementation, just if i could programmatically
decide the view to be returned in my resource.
--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-user+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-user+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.