JAX-RS-goodies
Hello World
-
Jersey framework to create a simple REST style web application.
-
RESTEasy framework to create a simple REST style web application.
TODO
Basic Examples
Basic annotations and functions to develop REST service.
- JAX-RS @Path URI matching example
- JAX-RS @PathParam example
- JAX-RS @QueryParam example
- JAX-RS @MatrixParam example
- JAX-RS @FormParam example
- Get HTTP headers in JAX-RS
- Download text file from JAX-RS
- Download image file from JAX-RS
- Download pdf file from JAX-RS
- Download excel file from JAX-RS
File Upload Examples
How to handle multipart data in JAX-RS.
- File upload example in Jersey
- File upload example in RESTEasy
Working with XML
XML support in JAX-RS.
- XML example with Jersey + JAXB
- XML example with RESTEasy + JAXB
Working with JSON
JSON support in JAX-RS.
- JSON example with Jersey + Jackson
- JSON example with RESTEasy + Jackson
- JSON example with RESTEasy + JAXB + Jettison