Documentation ¶
Overview ¶
Demonstrate how to use rest.RouteObjectMethod
rest.RouteObjectMethod helps create a Route that points to an object method instead of just a function.
The curl demo:
curl -i -d '{"Name":"Antoine"}' http://127.0.0.1:8080/users curl -i http://127.0.0.1:8080/users/0 curl -i -X PUT -d '{"Name":"Antoine Imbert"}' http://127.0.0.1:8080/users/0 curl -i -X DELETE http://127.0.0.1:8080/users/0 curl -i http://127.0.0.1:8080/users
Click to show internal directories.
Click to hide internal directories.