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

Summary

This chapter started off with a brief introduction to logging RESTful APIs and the key principles were to recognize the importance of logging requests and best practices for logging including security compliance. We learned how to validate JAX-RS 2.0 resources using Bean Validation. In this chapter, we also saw how to write generic exception mappers for application-specific cases.

We covered how federated identities are a necessity in the current era of interconnected hybrid systems, protocols, and devices. We covered SAML and OAuth 2.0 similarities between SAML and 3-legged OAuth as well as best practices for OAuth.

The next chapter will walk through topics such as caching patterns and asynchronous REST API to improve performance and scalability, ...

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