Description
Design scalable and robust RESTful web services with JAX-RS and Jersey extension APIs
About This Book
- Get to grips with the portable Java APIs used for JSON processing
- Design solutions to produce, consume, and visualize RESTful web services the usage of WADL, RAML, and Swagger
- A step-by-step guide packed with many real-life use-cases to help you build efficient and protected RESTful web APIs in Java
Who This Book Is For
If you are a web developer with a basic understanding of the REST concepts but are new to the idea of designing and developing RESTful web services, this is the book for you. As all the code samples for the book are written in Java, proficiency in Java is a must.
What You Will Learn
- Introduce yourself to the RESTful software architectural style and the REST API design principles
- Make use of the JSR 353 APIs and Jackson API for JSON processing
- Build portable RESTful web APIs, making use of the JAX-RS 2.0 API
- Simplify API development the usage of the Jersey extension APIs
- Secure your RESTful web services with quite a lot of authentication and authorization mechanisms
- Get to grips with the quite a lot of metadata solutions to describe, produce, and consume RESTful web services
- Understand the design and coding guidelines to build well-performing RESTful APIs
- See how the role of RESTful web services changes with emerging technologies and trends
In Detail
REST (REpresentational State Transfer) is a simple yet powerful software architecture style to create scalable web services and allow them to be simple, lightweight, and fast. The REST API uses HTTP and JSON, so that it can be used with many programming languages such as Ruby, Java, Python, and Scala. Its use in Java seems to be the most well liked though, on account of the API’s reusability.
This book is a guide to developing RESTful web services in Java the usage of the popular RESTful framework APIs available today. You’ll begin with gaining an in-depth knowledge of the RESTful software architectural style and its relevance in modern applications. Further, You’ll understand the APIs to parse, generate, turn out to be, and query JSON effectively. Then, You’ll see how to build a simple RESTful service the usage of the popular JAX-RS 2.0 API at the side of some real-world examples. This book will introduce you to the Jersey framework API, which is used to simplify your web services.
You will also see how to protected your services with quite a lot of authentication mechanisms. You’ll get to grips with quite a lot of solutions to describe, produce, consume, and visualize RESTful web services. After all, You’ll see how to design your web services to equip them for the future technological advances, be it Cloud or mobile computing.
By the end of this book, it is possible for you to to efficiently build robust, scalable, and protected RESTful web services, making use of the JAX-RS and Jersey framework extensions.
Style and approach
This book is written as a step-by-step guide to designing and developing robust RESTful web services. Each topic is explained in a simple and easy-to-understand manner with lots of real-life use-cases and their solutions.