Tuesday, June 9, 2015

How to use `sort` in Spring Data REST

To use `sort` in Spring Data REST,

you can use as follows:

http://localhost:{port}/api/customers?sort=firstName,desc

You can reference the following sample project:

https://github.com/izeye/samples-spring-boot-branches/tree/jpa-and-data-rest

Reference:
http://docs.spring.io/spring-data/rest/docs/current/reference/html/

No comments:

Post a Comment