i have an entity for i.e stock table ( attribute item, quantity, weight, expiration date .. ecc)... how can do a dynamic query on my rest spring backend ? For i.e the user can do a query without filter but can also do a query with multiple filter for i,e quantity>0 and item = x and expiration data > yesterday... so i have to develop the parse to accept not a fixed number of parameters. My second question is that my rest api must accept = as operator but also < > >= <= != to do filter query. Thanks
spring rest multiple filter
1.3k Views Asked by esoni At
1
There are 1 best solutions below
Related Questions in SPRING
- Redirect inside java interceptor
- Spring RestTemplate passing the type of the response
- spring-integration-dsl-groovy-http return null when i use httpGet method
- Custom Spring annotation for request parameters
- Spring - configure Jboss Intros for xml with java config?
- HTTP Status 404 - Not Found in Spring 3.2.7
- AndroidAnnotations how to use setBearerAuth
- android I/O error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found
- Show login dialog when not authenticated yet
- Spring Data Rest supporting json and xml
- @Value annotation not resolved in a class that belongs to dependency jar
- Remove nested _embedded fields while using projections
- How to send Rest GET request that contains "#" value in url parameters?
- How to inject spring bean into Validator(hibernate)
- How to keep a variable in the URL when using Spring LocaleChangeInterceptor
Related Questions in REST
- Spring RestTemplate passing the type of the response
- .net rest service with JSON string and consumed with java client
- SuiteCRM how to retrieve all account related contacts
- http status code for failed email send
- cloud foundry - 413 Request Entity Too Large
- Why does PHP add "\r\n" to an empty string?
- WCF Service not accepting multiple body parameters
- How to send Rest GET request that contains "#" value in url parameters?
- Phalcon PHP - RESTful API
- Object of class CS_REST_Wrapper_Result could not be converted to string in CAMPAIGN MONITOR
- purchase individual items and subscriptions in the same PayPal REST API transaction
- Empty Response Received on Android POST Request
- angular load more tweets onclick
- Async vs Horizontal scaling
- Responding to an Office 365 event invite via REST
Related Questions in SPRING-DATA
- LightAdmin - Customise parsing DateTime with app timezone
- ClassNotFound: UpdateableState in spring-data-neo4j-rest 3.3.0
- Spring Data JPA Many to Many save to set
- Inherited properties of related entities are not visible in spring-data-neo4j-rest
- Guice + Jersey + Spring data
- org.hibernate.exception.SQLGrammarException: could not prepare statement; nested exception is javax.persistence.PersistenceException
- Caused by: java.sql.SQLSyntaxErrorException: [SQL0205] Column MITMAS_MMCONO not in table OOLINE in schema
- Spring HATEOAS + JPA links
- Mongo @DBRef unique
- What is the exact meaning of @RestResource(exported=false) in Spring-Data?
- How is the RowMapper Method working from Spring 1.2?
- Spring boot don't let me create a repository without database
- Delete ObjectDetails from Object Spring Data
- How to have a different Elastic Spring Data index per request
- JPA - how to prevent an unnecessary join while querying many to many relationships
Related Questions in SPRING-REST
- How to map a path variable to an entity in spring-rest
- How to create a REST authentication endpoint with Spring Security
- Spring security saml with rest api and angular 2
- Why passing resources ids via REST API URI if they already known?
- Tomcat: No modifications are allowed to a locked ParameterMap
- Having parametrized class in swagger annotations
- Spring Boot + Zuul: how to get the "Content-length" header from a file stream provided by RESTful services?
- able to hit get method endpoint but unable to hit POST method
- spring rest multiple filter
- Spring REST application configuration and startup
- Swagger + Spring security - Hide methods based on roles
- React Native, Spring REST: image served is not loading on the app
- Spring Boot / REST - Sample Code Terminates After Launch
- JPA Controller Update Function
- Spring boot how to edit entity
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am not sure if spring provides any such functionality. You will have to take the conditions for your filters in a map, build an expression parser and then build queries at run time.
I would say a better solution is to look at graphql.
http://graphql.org/
Spring has support for GraphQL https://github.com/oembedler/graphql-spring-boot