users@jersey.java.net

Re: [Jersey] Names for "start record" and "max records" parameters, slightly OT

From: Gabor Szokoli <szocske_at_gmail.com>
Date: Fri, 11 Jul 2008 10:34:59 +0200

On 7/11/08, Martin Grotzke <martin.grotzke_at_freiheit.com> wrote:
> Hi,
>
> you could have a look at the OpenSearch specification [1], they use
> startIndex and count.

I like Martins suggestion better, but I'd like to thank Frank too for his.

Trick followup question:

How un-RESTful is my service if I impose an implicit minimum on
"count" in my resource-listings? The XML element enclosing the list
would have "total" and "count" attributes to reflect the number of
resources matching the query vs the number of resources listed.

(I'll go and see what the referenced specification suggests, but I'm
interested in peoples' oppinions too.)


Gabor