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

Chapter 2. Resource Design

Chapter 1, REST – Where It Begins, covered the basics of REST as well as best practices while designing RESTful resources. This chapter continues the discussion with an understanding of request response patterns, how to deal with different representations of resources, what are the different strategies when versioning API, and how standard HTTP codes can be used with REST responses. Subsections of this chapter will cover the following topics:

  • REST response patterns
  • Content negotiation
  • Entity providers and different representations
  • API versioning
  • Response codes and REST patterns

We will also cover custom entity providers for serializing and de-serializing request and response entities as well as other approaches such as streaming ...

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