I created a lookup on /servicesNS/-/-/data/lookup-table-files to obtain the lookup table files. I noticed that the result was limited to 30 results per request. With that in mind, I attempted to pass in parameters for output_mode=json&count=0. The following code has been modified slightly and is based on a snippet found in the invoke function of spurl.py SDK example:
return binding.connect(**kwargs).request(path, method=method, body=urllib.urlencode({'output_mode': 'json', 'count': 0}))
The output_mode works properly and returns json, however when using count (or offset), it results in a 400 error:
HTTP 400 Bad Request -- {"messages":[{"type":"ERROR","text":"Argument \"count\" is not supported by this handler."}]}
Now, if I use binding.connect(**kwargs).get and pass in the same dictionary {'output_mode': 'json', 'count' 0} it gets properly passed as part of the GET request and returns all of the records.
return binding.connect(**kwargs).get(path, **{'output_mode': 'json', 'count': 0})
I believe the desired behavior on the request method would be to allow the use of Pagination and filtering parameters.
I created a lookup on
/servicesNS/-/-/data/lookup-table-filesto obtain the lookup table files. I noticed that the result was limited to 30 results per request. With that in mind, I attempted to pass in parameters foroutput_mode=json&count=0. The following code has been modified slightly and is based on a snippet found in theinvokefunction ofspurl.pySDK example:The
output_modeworks properly and returnsjson, however when usingcount(oroffset), it results in a 400 error:Now, if I use
binding.connect(**kwargs).getand pass in the same dictionary{'output_mode': 'json', 'count' 0}it gets properly passed as part of the GET request and returns all of the records.I believe the desired behavior on the
requestmethod would be to allow the use of Pagination and filtering parameters.