Summary

In this chapter, we have seen how to create a RESTful API with Spring MVC. This kind of backend yields great benefits in terms of performance and maintenance and can do wonders when coupled with a JavaScript MVC framework such as Backbone, Angular JS, or React.js.

We saw how to handle errors and exceptions properly and learned how to leverage the HTTP status to make a better API.

Finally we added automatic documentation with Swagger and added the ability to produce both XML and JSON.

In the next chapter, we will learn how to secure our application as well as use the Twitter API to sign our users up.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.216