Decoupling Registration from Login in the Reddit App 1. Overview In this tutorial – we’ll replace the Reddit backed OAuth2 authentication process with a simpler, form-based login. We’ll still be able to hook Reddit up to the application after we log in, we’ll just not use Reddit to drive our… Continue Reading reddit-app-replace-reddit-auth-with-form-based-login

Testing REST with multiple MIME types 1. Overview This article will focus on testing a REST Service with multiple Media Types/representations. We will write integration tests capable of switching between the multiple types of Representations supported by the API. The goal is to be able to run the exact same… Continue Reading testing-rest-api-with-multiple-media-types

Build a REST API with Spring and Java Config 1. Overview This article shows how to set up REST in Spring – the Controller and HTTP response codes, configuration of payload marshalling and content negotiation. Further reading: Using Spring @ResponseStatus to Set HTTP Status Code Have a look at the… Continue Reading building-a-restful-web-service-with-spring-and-java-based-configuration

REST Query Language Over Multiple Tables with Querydsl Web Support REST Spring 1. Overview In this tutorial, we’ll continue with the second part of Spring Data Querydsl Web Support. Here, we’ll focus on associated entities and how to create queries over HTTP. Following the same configuration used in part one, we’ll… Continue Reading rest-querydsl-multiple-tables

Introduction to Spring REST Docs 1. Overview Spring REST Docs generates documentation for RESTful services that is both accurate and readable. It combines hand-written documentation with auto-generated document snippets produced with Spring tests. 2. Advantages One major philosophy behind the project is the use of tests to produce the documentation.… Continue Reading spring-rest-docs