tags:

views:

13

answers:

1

how to return the correct representation based on URI

example

/text.json should return json

/text.xml should return xml

/text should return plain text

All these are mapped to the same method

@GET public Contact getContacts() {

}