I am trying to develop a RESTful web service that will be used for entities like Users, Products, and the like.
To create new user I want to use
[POST] site/user
as REST specs say
However, I also want to search for users. According to REST specs that would be
[GET] site/user?name=Shuaib&city=Dhaka
So far so good. But what if I want to enter large JSON data as part of the search parameters? If I use get in that case -> my url will look clumsy -> since there is a restriction on GET request url size large JSON data might exceed url size
Because of these problems, I want to use POST for searching for user.
[POST] site/user
Is this a good development practice?