[keycloak-dev] Setting fixed max results on REST endpoints

Marek Posolda mposolda at redhat.com
Thu Oct 20 11:38:18 EDT 2016


+1 for 100 entries by default.

One good side effect is, that it will also fix the REST calls with IBM 
DB2. Those are currently broken AFAIR if you not set "max" in the REST 
request, as the underlying JPA query without "max" won't work with DB2.

I like ?max=-1 slightly more than ?all . Despite on IBM DB2 people will 
still need something like ?max=1000000 instead :-)

Marek


On 20/10/16 06:58, Stian Thorgersen wrote:
> Would it make sense to set a fixed max results on REST endpoints for all
> endpoints that are paginated?
>
> I propose we set it to fetch maximum 100 entries by default. To fetch
> everything ?max=-1 or alternatively we could use ?all.
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev




More information about the keycloak-dev mailing list