Skip to content

This a RESTful API that do CRUD operation using MongoDB and Gin. Gin is a web framework written in Golang.

Notifications You must be signed in to change notification settings

ariefmanda/go-rest-api-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Golang-REST-API-with-MongoDB

You need to import following packages

  • go get github.com/gin-gonic/gin
  • go get gopkg.in/mgo.v2
  • go get gopkg.in/mgo.v2/bson

To run the server

  • go run server.go

Basic Routing

Routing HTTP Description
/users GET Get All User
/users/:id GET Get Single User
/users POST Create A User
/users/:id PUT Edit User
/users/:id DELETE Delete User

About

This a RESTful API that do CRUD operation using MongoDB and Gin. Gin is a web framework written in Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages