Skip to content

Instantly share code, notes, and snippets.

@jagregory
Created April 11, 2011 21:01
Show Gist options
  • Save jagregory/914335 to your computer and use it in GitHub Desktop.
Save jagregory/914335 to your computer and use it in GitHub Desktop.
@Path("/customers")
class CustomerResource {
@GET
def get =
"[{ 'name': 'James' }, { 'name': 'Gregory' }]"
@GET
def get(id) =
"{ 'name': 'James' }"
}
@jagregory
Copy link
Author

Seems a shame that the @get annotations can't be inferred from the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment