Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Spring Data REST Exporter starter web application
tree: a5959416e0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
load_name_data.rb
names.txt
settings.gradle

README.md

Spring Data REST Exporter Example

This deployable web application is an example project that illustrates how to deploy your own artifacts into a WAR that uses the Spring Data REST Exporter.

Use

Either use this project as a template for your own project, or simply include your own artifacts as dependencies in the build.gradle file.

The easiest way to get going with the REST exporter is to simply run the embedded Jetty servlet container built into Gradle:

./gradlew jettyRun

This will expose a server at http://localhost:8080/data/. Issue curl requests to find out what services are available.

Alternatively, you can build a WAR file using ./gradlew war, and deploy that into your servlet container.

Loading dummy data for testing

If you want to play with some Person entities, there is a Ruby script in the root of the project named load_name_data.rb. It will load some random names from the names.txt file and create Person entities from them. You can then test the paging and sorting functionality by adding the appropriate URL parameters (information is in the wiki: spring-data-rest/wiki/Paging-and-Sorting).

Something went wrong with that request. Please try again.