E
E
Eugene2017-09-16 11:42:54
Java
Eugene, 2017-09-16 11:42:54

How to implement multiple search in REST using Spring?

How to implement multi-parameter search for REST service in Spring?
For example, a query like this

http://myapp:8080/users?search=name:jane;city:california;birthday>2010

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2017-09-16
@aol-nnov

well, there is plenty to choose from :)

  • you can set up your controller, which will parse it and turn it into a CriteriaBuilder
  • if you use spring-data-rest-webmvc, then there can also be separate methods for searching
  • bikes like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question