This repo contains some example code that exposes some Spring Data repositories via Spring Data REST and creates a documentation of that API using Springfox.
The companion blog post with more details can be found here.
Simply run gradlew bootrun on Windows or ./gradlew.sh bootrun on Unix.