CMDBuild Forum

REST API Max Limit

Hi all,

I'm trying to figure out REST API maximum definable limit to understand if I need to implement API call pagination or if I can just define a big limit that will never be reached.

The API Resources I'm calling:

2018-10-19 12:13:13,340 http://localhost:80 "GET /cmdbuild/services/rest/v2/classes/api_catalog/cards/?limit=10000 => HTTP/1.1" 200 None

2018-10-19 12:14:52,124 http://localhost:80 "GET /cmdbuild/services/rest/v2/classes/api_catalog/cards/?limit=10000000000000000000000000000000000000000000000000000000000000000000000 => HTTP/1.1" 404 None

I've checked the webservice manual and it doesn't seem to refer any specific limit. If I specify an insanely huge limit I get a 404

Thanks

Best regards
Alexandre Juma
The limit is the one given by the Java Integer max value which is 2147483647. 
If you want to get all items you can make the request without limit parameter.
 
CMDBuild Team
 
 
Previously Alexandre wrote:

Hi all,

I'm trying to figure out REST API maximum definable limit to understand if I need to implement API call pagination or if I can just define a big limit that will never be reached.

The API Resources I'm calling:

2018-10-19 12:13:13,340 http://localhost:80 "GET /cmdbuild/services/rest/v2/classes/api_catalog/cards/?limit=10000 => HTTP/1.1" 200 None

2018-10-19 12:14:52,124 http://localhost:80 "GET /cmdbuild/services/rest/v2/classes/api_catalog/cards/?limit=10000000000000000000000000000000000000000000000000000000000000000000000 => HTTP/1.1" 404 None

I've checked the webservice manual and it doesn't seem to refer any specific limit. If I specify an insanely huge limit I get a 404

Thanks

Best regards
Alexandre Juma

 

Thanks for the clarification.
 
Previously Tecnoteca wrote:
The limit is the one given by the Java Integer max value which is 2147483647. 
If you want to get all items you can make the request without limit parameter.
 
CMDBuild Team
 
 
Previously Alexandre wrote:

Hi all,

I'm trying to figure out REST API maximum definable limit to understand if I need to implement API call pagination or if I can just define a big limit that will never be reached.

The API Resources I'm calling:

2018-10-19 12:13:13,340 http://localhost:80 "GET /cmdbuild/services/rest/v2/classes/api_catalog/cards/?limit=10000 => HTTP/1.1" 200 None

2018-10-19 12:14:52,124 http://localhost:80 "GET /cmdbuild/services/rest/v2/classes/api_catalog/cards/?limit=10000000000000000000000000000000000000000000000000000000000000000000000 => HTTP/1.1" 404 None

I've checked the webservice manual and it doesn't seem to refer any specific limit. If I specify an insanely huge limit I get a 404

Thanks

Best regards
Alexandre Juma