JAX-RS Tutorials: REST API using Java


JAX-RS is API specification for RESTful web services using Java. RESTful web services is implementation of REST (Representational State Transfer) which is architectural design for distributed system or in general we can say JAX-RS is a set of APIs to develop REST service. 

This is a brief introduction about REST and JAX-RS. You can find more information on REST on Wiki and JAX-RS Official Site.

What is REST?

  1. Representational state transfer is an abstraction of the architecture of the World Wide Web. More precisely, REST is an architectural style consisting of a coordinated set of architectural constraints (source Wikipedia)

    As JAX-RS is only a specification, we need to use it's implemented library to create RESTful web service.

  2. Following are such list of libraries

    • RESTeasy, JBoss's implementation.
    • Restlet, created by Jerome Louvel, a pioneer in REST frameworks

    For this JAX-RS tutorials set we will use Jersey library and Maven for dependency management.

Quick Start

Following are some start-up JAX-RS examples.

  • Simple Hello World Example 
    JAX-RS tutorial, which sends “Hello World” text as response string using JAX-RS API and Jersey implementation.
  • JSON Response Example


Popular posts from this blog

AngularJs Tutorial: Getting Started

Abstract Factory design pattern analysis

AngularJs Tutorials : Bootstrap