I often find it difficult to manage complex GET requests without sending a JSON body. URL parameters just won't cut it. If I manage to find a work around with URL parameters, then it usual y adds more complexity and confusion.
I am not a web developer and I have not done any big applications but even small-ish applications that I do have requests like this:
{ page: { batch: 10, current: 1 }
, sort: { _id: -1 }
, project: {history: 0, attach: 0}
, filter: { status: "new"}
}
This is a simple request without arrays. Arrays just make this even more problematic.
So, my questions are how do you manage complex GET requests without JSON body? What am I doing/thinking wrong? Why can't we have body with GET?
Yes, I can probably send this request using URL parameters but it makes life so much more difficult especially when you need to send filters, paging and what not ...
I got tired of all the difficulties and changed such GET requests to POST. I know it is wrong (hence the question) but it feels like huge load off my shoulders.