Hi,
I am trying to create an HTTPRequest programmatically (without the IDE's help) that takes a query parameter (page = 0...N) to manage pagination. Unfortunately, I can't figure out how to do it. Below is my code>
var request = HTTPRequest(url) request.method = HTTPMethod.Get request.queryParameters = ["page": "0"] request.responseSerializerType = HTTPResponseSerializer.JSON request.send()
The request works but no parameter is passed. I tried adding "?page=0" in the URL. It works but then I cannot manipulate the query parameters through a map. Is it a bug or am I doing something wrong?
Thanks.