monitorjbl / json-view

Programmatic JSON views with Jackson
GNU General Public License v3.0
203 stars 55 forks source link

How to integrate with JAX-RS #50

Open pablo-moreira opened 7 years ago

pablo-moreira commented 7 years ago

Hello! Congratulations on the project.

Is there any way to perform JAX-RS integration.

monitorjbl commented 7 years ago

Right now there is no first-class support for JAX-RS the way there is for Spring. The reason for that is JAX-RS is a spec, not a framework. An integration could be written for implementations like Jersey, it just hasn't been yet.

You could use library as-is if you can add the module to the underlying Jackson ObjectMapper. You will have to return JsonView instances from your endpoints though.