PacktLib: RESTful Web Services with Dropwizard

RESTful Web Services with Dropwizard

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Getting Started with Dropwizard

Web service development with Dropwizard

Preparing your development environment

Creating a Dropwizard Application

Generating a Maven-based project

Configuring Dropwizard dependencies and building the configuration

Hello World using Dropwizard

Configuring the Application

Externalizing the application's configuration

Validating configuration settings

Creating and Adding REST Resources

Creating a resource class

Representations – RESTful Entities

Creating a representation class

Serving representations through the Resource class

Mapping the request data to representations

Using a Database

Preparing the database

Interacting with the database

Validating Web Service Requests

Adding validation constraints

Performing validation

Cross-field validation

The Web Service Client

Building a client for our application

Interacting with our services

Authentication

Building a basic HTTP authenticator

Authenticating users with credentials stored in a database

The User Interface – Views

Building a user interface for the web service client

Testing a Dropwizard Application

Testing a Dropwizard Application

Testing a Dropwizard Application

Deploying a Dropwizard Application

Deploying a Dropwizard Application

Index