Archive | REST RSS feed for this section

REST Pagination in Spring

This is the seventh of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. This article will focus on the implementation of pagination in a RESTful web service.

Read full story Comments { 4 }

This Is Not Your Father’s Spring – A Learning Project

I started the REST project on github to explore writing an elegant RESTful Web Service with the latest and greatest Spring had to offer. That was the daily SNAPSHOT builds of Spring 3.1, which went GA at the end of last year. Since then, the project has generated a number of posts, on a variety [...]

Read full story Comments { 3 }

Basic and Digest authentication for a RESTful Service with Spring Security 3.1

This is the sixth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1. A previous article introduced security in the context of a RESTful service, using form-based authentication. This article will focus on configuration of Basic and Digest authentication and on configuring both protocols [...]

Read full story Comments { 1 }

REST Service Discoverability with Spring

This is the fifth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. The previous article introduced the concept of Discoverability for the RESTful service, HATEOAS and followed with some practical scenarios driven by tests. This article will focus on [...]

Read full story Comments { 4 }

RESTful Web Service Discoverability

This is the fourth of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. The article will focus on Discoverability of the REST API, HATEOAS and practical scenarios driven by tests.

Read full story Comments { 7 }

Securing a RESTful Web Service with Spring Security 3.1

This is the third of a series of articles about setting up a secure RESTful Web Service using Spring 3.1 and Spring Security 3.1 with Java based configuration. This article will focus on the security configuration using Spring Security 3.1, assuming some understanding of Spring Security basics and focusing on the specifics of securing the [...]

Read full story Comments { 17 }

Building a RESTful Web Service with Spring 3.1 and Java based Configuration, part 2

This is the second of a series of articles about setting up a RESTful web service using Spring 3.1 with Java based configuration. This article will focus on setting up REST in Spring, the Controller and HTTP response codes, configuration of payload marshalling and content negotiation.

Read full story Comments { 14 }

Introduction to Java integration testing for a RESTful API

This post will focus on basic principles and mechanics of writing Java integration tests for a RESTful API (with a JSON payload). The goal is to provide an introduction to the technologies and to write some tests for basic correctness. The examples will consume the latest version of the GitHub REST API. For an internal [...]

Read full story Comments { 10 }