So, the problem I'm having is that in some cases my application needs a more complex search and filtering, and because of that, the requests need some parameters. In sometimes is necessary to pass an array with many entries which can cause the overflow of the URI query parameter limitation.
Since HTTP Get requests shouldn't have an HTTP body, the easiest solution to solve this was to change the request method to Post. But I find this a problem and was expecting that someone could show me better solutions to this problem that I was just too inexperienced to see.
From this
HTTP Get /resource?array=[''...] //could reach the maxlenght of the query parameters
to this
HTTP Post /resource/search
body: {
'array': ['' ...]
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…