Replace query parameters with JSON body in Spring Boot PagingAndSortingRepository -


i'm using pagingandsortingrepository spring boot.

is possible receive parameters http body (json) instead of receiving them query parameters (@param).

example:

@repositoryrestresource(collectionresourcerel = "people", path = "people") public interface personrepository extends pagingandsortingrepository<person, long> {   list<person> findbylastname(@param("name") string name);   person findbyusername(@param("username") string username); } 

i'm looking alternative of @param("name") string name value gets extracted json-body instead of query parameter.

ok, mistake not think in depth. doesn't make sense use body payload querying data rest resoucre.

think of link 1 user (a) wants share user (b) (e.g. sending via email). query parameters missing , link wouldn't represent site user's point of view. way share sites information link append query parameters link itself.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -