Versioning, Paging, and Sorting

In this chapter we will discuss:

  • Strategies for versioning REST services
  • Adding pagination capabilities
  • Adding sorting capabilities

We all are familiar with the famous proverb “the only thing constant in life is change.” This applies to software development. In this chapter we will look at versioning our API as a way to handle such changes. Additionally, dealing with large datasets can be problematic especially when mobile clients are involved. Large datasets can also result in server overload and performance issues. To handle this, we will employ paging and sorting techniques and send data in manageable ...

Get Spring REST now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.