Example of REST API to create and retrieve users with Go and Revel framework
This project uses Revel framework. You can install it by:
go get github.com/revel/revel
go get github.com/revel/cmd/revel
Once Revel framework is installed, you can run the server by:
revel run go-revel-rest
Note that the project must be located under $GOPATH/src/go-revel-rest
The API routes are defined in conf/routes
file:
GET /users
Retrieve all the users
GET /users/{id}
Retrieve user with id {id}
PUT /users/
Save a new user. id
and nickname
must be provided as form params.