REST API written in Go ( Golang )
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information. Added documentation of client.go Mar 4, 2016
client.go Client to test API Mar 4, 2016
web.go first commit Oct 17, 2015

Go JSON REST API with mongoDb database


Using client.go

List all the Pandas

go run client.go -url= -method=get

Create new Panda

go run client.go -url= -method=post -data='{"Name":"Name of Panda"}'

Delete existing Panda

go run client.go -url={Id} -method=delete

Update existing Panda

go run client.go -url={Id} -method=put -data='{"Name":"New name"}'

Nothing but cute Pandas

GET /pandas/ to get all the pandas. or /pandas/:id to get on with id

POST /pandas/ to add new panda {"name":"Name of new panda"}

DELETE /pandas/:id to remove that one panda.

PUT /pandas/ to update details {"name":"Name of new panda"}