Skip to content

Example of REST API to create and retrieve users with Go and Revel framework

Notifications You must be signed in to change notification settings

SantoshSah/go-revel-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-revel-rest

Example of REST API to create and retrieve users with Go and Revel framework

Install dependencies

This project uses Revel framework. You can install it by:

go get github.com/revel/revel

go get github.com/revel/cmd/revel

Run

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

Routes

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.

About

Example of REST API to create and retrieve users with Go and Revel framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages