Permalink
Browse files

Update README.md

  • Loading branch information...
orubel committed May 1, 2013
1 parent 83165d7 commit 479c11fc206819e7d21de175c267e8d5fd8704c3
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.md
View
@@ -33,7 +33,12 @@ def restRPCService
Then start adding annotations to the methods you wish to be called via an api with the request method you are going to call them through:
```
@RestRPC(request=RpcMethod.GET)
-def show(Long id) { ... }
+def show() { ... }
+```
+or
+```
+@RestRPC(request=RpcMethod.PUT)
+def updateBookAuthor() { ... }
```
NOTE: Do not add annotations to methods that REDIRECT as this will throw an error; Obviosly this is bad form but to avoid alot of questions in the forums, this would be why you got that error.

0 comments on commit 479c11f

Please sign in to comment.