12-13-2013 12:43 PM - edited 07-04-2021 01:25 AM
Good day -
The Prime API is pretty sweet, and can give you JSON data back easily with a call like this:
https://prime/webacs/api/v1/data/Clients.json?.full=true
It is, however, limited to 100 results. We'd like to see more than that.
How do I change this rate limit for the API?
12-17-2013 02:52 PM
The .maxResults parameter would seem to allow one to change it according to the API documentation.
But I tried it on mine right now and the results appear to still be limited to 100.
12-18-2013 06:41 AM
Thanks for the research, Marvin.
Where/how do you access this parameter?
12-18-2013 06:59 AM
Just append it to your query with the "." delimiter.
For example:
https://prime/webacs/api/v1/data/Clients.json?.full=true.maxResults=200
12-18-2013 10:48 AM
I have found that this command does work, but still limits to 1000.
https://prime/webacs/api/v1/data/Clients.json?.maxResults=9999&.full=true
Now I get Tomcat a HTTP Status 503 error. There's another setting I've not found yet.
My json results say "@count":"6980", suggesting I have that many clients in the database.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide