I'm implementing a restful API interface, and was wondering about some limitations and best practices.
I have a GET request which retrieves a series of entries from a database table.
However my problem is, I allow my callers to pass in quite a complicated set of criteria to filter out what they want.
My situation is:
- After serialization into a query string, my query string is well over the limit of a GET request.
- I would like to maintain a RESTful API, and since I'm retrieving records, it seems like I should use a GET request.
If I do not want to violate the RESTful API, but would like to achieve my goal of passing over a long query string of parameters, what would be a best practices to solve this?
Any suggestions are welcome. Thank you!