users@jersey.java.net

Re: pagination of database tables exposed directly on the web

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Thu, 30 Apr 2009 20:54:27 +0200

ops, wrong copy/paste... to choose between JSON or XML, just use the
accept header (instead content-type):

JSON: curl -v -H "Accept: application/json" -X GET
http://fgaucho.dyndns.org:8080/footprint-service/user/readall/10/10
XML: curl -v -H "Accept: application/xml" -X GET
http://fgaucho.dyndns.org:8080/footprint-service/user/readall/10/10