Is it good to use many request parameters with a GET request in the REST API?
I went through a couple of sites and tried to get a standard way to execute a GET URI with parameter implementation.
Here's what I'm trying to achieve: search for all users having provided all the search criteria .
Search criteria are similar to companyID , sections , offset , limit , orderby , filter .
According to basic GET standards, a request cannot have a request body or payload .
Would there be a good way to make a GET request and put all parameters behind ? in the request url, something like this:
GET http://localhost:8080/api/users?companyId=qwerty§ions=hr&offset=0&limit=20&oorderby=asc&filter=^[sSmM]
I thought to make a PUT or POST and send all this data to the payload and implement the code to return the desired answer, i.e. a list of users.
If I do this, I will change the default behavior of HTTP methods .
Can you send me a way out of the situation. Thanks.
source share