This page describes collections of Jersey Rest examples. These examples demonstrate all the features of Jersey Rest Framework. You can also refer Jersey Rest Tutorial to learn concepts and basics.
Jersey Rest - Getting Started Examples
Jersey Rest Source Code Examples at GitHub
- Jersey Rest BookMark Application - This example demonstrates how to use JPA in the backend.
- Jersey Rest bookstore-webapp example - This example demonstrates how to connect JSP pages to resources.
- Jersey CDI Integration CDI Beans WebApp Example - This example demonstrates how to develop RESTful web service with CDI managed beans and a Servlet 3.0 Web container.
- Clipboard Example - Very basic programmatically created resource example showcases CRUD functionality implemented via HTTP POST, GET, PUT and DELETE methods. A simple clipboard is simulated which is capable of handling text data only.
- Jersey Rest Exception Mapping Example - This example demonstrates how to create a custom exception mapping.
- Jersey Rest Freemaker Example - This example demonstrates how to use Freemarker templating engine to produce web pages via Jersey viewable support.
- Jersey Spring Integration Spring Helloworld WebApp Example - This example demonstrates how to create simple Jersey application that utilises Spring 3 DI features based on Spring annotations, packaged into WAR file.
- JAX-RS Types Injection Example - This example demonstrates injection of various runtime information into Jersey/JAX-RS resources.
- Jackson JAX-RS JSON Provider Example - This example demonstrates how to produce/consume JSON representations from Java objects.
- MOXy JAX-RS JSON Provider Example - his example demonstrates how to produce/consume JSON representations from Java objects.
- Managed Client Simple Example - This sample shows usage of injected client managed by jersey container into a resource methods.
- Server Asynchronous Managed Example - This example demonstrates JAX-RS 2.0 server-side non-blocking API using ManagedAsync annotation.
- Reactive Clients Jersey Reactive Client Extensions Example - This example demonstrates how data from multiple resources and in various formats (json, xml) can be combined into a form suitable to ones requirements.
- Multipart Web app Example - This example demonstrates how to develop RESTful web service with demonstrating JAX-RS Integration with MIME MultiPart Message Formats and an EE 6 compliant Web container.
Find more example at https://github.com/RameshMF/jersey/tree/master/examples
Rest API Design Best Practices
- Restful API Design Best Practices - In this post, we will discuss the best practices for Restful API design.
If you are new to Restful terms then read my Restful Tutorial - You will learn everything about REST here.
Comments
Post a Comment
Leave Comment