CHAPTER 12

image

Exposing a REST API

Nowadays most of the big social network companies like Facebook and Twitter expose some services through REST API calls, making them easy to integrate with other applications. In this chapter, you are going to extend your code by adding some new functionality. You are going to expose a RESTful API so other people can easily send, receive, update, and remove documents from your Spring application over the HTTP protocol. And yes, this is a web application too!

RESTful

Before you start coding, let’s start designing the RESTful calls. I’ll also review what this RESTful thing is. Roy Fielding introduced the Representational ...

Get Introducing Spring Framework: A Primer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.