users@jersey.java.net

Regex for _at_GET - 0 or 1 parameters?

From: Michael Norman <mwnorman_at_gmail.com>
Date: Wed, 9 Jun 2010 04:53:11 -0400

It is possible to annotate a getCar method so that both

   /resource-root/Car (returns all Cars)
and
   /resource-root/Cars/1 (returns Car whose id is 1)

go to the same method?


Thanks in advance,
Mike Norman