O'Reilly logo

RESTful Java Patterns and Best Practices by Bhakti Mehta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Design principles for building RESTful services

Here is the process of designing, developing, and testing RESTful services. We will cover each of these in detail in this chapter:

  • Identifying the resource URIs

    This process involves deciding what nouns will represent your resource.

  • Identifying the methods supported by the resource

    This process involves using the various HTTP methods for CRUD operations.

  • Identifying the different representations supported by the resource

    This step involves choosing whether the resource representation should be JSON, XML, HTML, or plain text.

  • Implementing the RESTful services using JAX-RS APIs

    The API needs to be implemented based on the JAX-RS specification

  • Deploying the RESTful services

    Deploy the service on an application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required