RESTful Web Services with Dropwizard

The world is moving towards RESTful Web Services and now you can get up to speed quickly and painlessly. This tutorial covers all you need to create your own Web Service applications using the Dropwizard libraries.
Preview in Mapt

RESTful Web Services with Dropwizard

Alexandros Dallas

1 customer reviews
The world is moving towards RESTful Web Services and now you can get up to speed quickly and painlessly. This tutorial covers all you need to create your own Web Service applications using the Dropwizard libraries.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.70
RRP $20.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.70
$34.99
$29.99p/m after trial
RRP $20.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


RESTful Web Services with Dropwizard Book Cover
RESTful Web Services with Dropwizard
$ 20.99
$ 14.70
Building RESTful Web services with Go Book Cover
Building RESTful Web services with Go
$ 31.99
$ 22.40
Buy 2 for $32.20
Save $20.78
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783289530
Paperback112 pages

Book Description

The RESTful Web Services concept is constantly growing compared to SOAP technologies. Used by many API providers, RESTful has started to become the architecture of choice for the enterprise SOA as well. Dropwizard combines everything needed to create production ready RESTful Web Services, combining the most powerful, stable and well-known RESTful Java-based libraries.

This practical guide will help you learn how to create, configure, and implement a dynamic Web Service application by showcasing practical examples using the most important modules of Dropwizard and combining them together.

Starting from using Maven to create an empty default Java application to deploying a production-ready scalable Web Service application, this book demonstrates the capabilities of Dropwizard and the advantages of using it.

Discover how to use Jersey to create rest resources, and add them to Dropwizard's bootstrapped environment so they can be served by its embedded Jetty server. Learn how to combine and utilize the Database. Understand more about Configuration, Testing and Monitoring libraries to create a Web Service application in a step-by-step manner using solid examples. Also gain insight on how to secure your Web Services and validate incoming requests with minimum effort.

This book is an invaluable asset to anyone who wants to create a RESTful Web Service application with the combined libraries of Dropwizard.

Table of Contents

Chapter 1: Getting Started with Dropwizard
Web service development with Dropwizard
Preparing your development environment
Chapter 2: Creating a Dropwizard Application
Generating a Maven-based project
Configuring Dropwizard dependencies and building the configuration
Hello World using Dropwizard
Chapter 3: Configuring the Application
Externalizing the application's configuration
Validating configuration settings
Chapter 4: Creating and Adding REST Resources
Creating a resource class
Chapter 5: Representations – RESTful Entities
Creating a representation class
Serving representations through the Resource class
Mapping the request data to representations
Chapter 6: Using a Database
Preparing the database
Interacting with the database
Chapter 7: Validating Web Service Requests
Adding validation constraints
Performing validation
Cross-field validation
Chapter 8: The Web Service Client
Building a client for our application
Interacting with our services
Chapter 9: Authentication
Building a basic HTTP authenticator
Authenticating users with credentials stored in a database
Chapter 10: The User Interface – Views
Building a user interface for the web service client

What You Will Learn

  • Build a sample Web Service application powered by Jersey
  • Configure your application and externalize your configuration settings
  • Use jDBI to interact with databases
  • Validate Web Service requests
  • Build Web Service clients
  • Add runtime health checks to ensure your application’s optimal performance
  • Ensure your application's stability by creating unit tests using the Dropwizard testing modules

Authors

Table of Contents

Chapter 1: Getting Started with Dropwizard
Web service development with Dropwizard
Preparing your development environment
Chapter 2: Creating a Dropwizard Application
Generating a Maven-based project
Configuring Dropwizard dependencies and building the configuration
Hello World using Dropwizard
Chapter 3: Configuring the Application
Externalizing the application's configuration
Validating configuration settings
Chapter 4: Creating and Adding REST Resources
Creating a resource class
Chapter 5: Representations – RESTful Entities
Creating a representation class
Serving representations through the Resource class
Mapping the request data to representations
Chapter 6: Using a Database
Preparing the database
Interacting with the database
Chapter 7: Validating Web Service Requests
Adding validation constraints
Performing validation
Cross-field validation
Chapter 8: The Web Service Client
Building a client for our application
Interacting with our services
Chapter 9: Authentication
Building a basic HTTP authenticator
Authenticating users with credentials stored in a database
Chapter 10: The User Interface – Views
Building a user interface for the web service client

Book Details

ISBN 139781783289530
Paperback112 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00
Object-Oriented JavaScript - Second Edition Book Cover
Object-Oriented JavaScript - Second Edition
$ 29.99
$ 21.00
Data Visualization with D3.js Cookbook Book Cover
Data Visualization with D3.js Cookbook
$ 26.99
$ 18.90
Learning Spring Boot Book Cover
Learning Spring Boot
$ 26.99
$ 18.90