Skip to content

MicroGo is a REST API built with Go and MongoDB. It is a simple API that allows you to create, read, update and delete data. (Auth included)

License

Notifications You must be signed in to change notification settings

Fillonit/MicroGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroGo

MicroGo is a REST API built with Go and MongoDB. It is a simple API that allows you to create, read, update and delete users.

Installation

  1. Clone the repository
  2. Install the dependencies
  3. Run the server
git clone
cd microgo
go get
go run main.go

Usage

Create a user

curl -X POST -H "Content-Type: application/json" -d '{"name":"Fillonit","location":"Kosovo", "title": "Software Engineer"}' http://localhost:8080/users

Get all users

curl -X GET http://localhost:8080/users

Get a user

curl -X GET http://localhost:8080/users/{id}

Update a user

curl -X PUT -H "Content-Type: application/json" -d '{"name":"Filloniti","location":"Kosovo", "title": "Software Engineer"}' http://localhost:8080/users/{id}

Delete a user

curl -X DELETE http://localhost:8080/users/{id}

License

MIT

Technologies

Go MongoDB

About

MicroGo is a REST API built with Go and MongoDB. It is a simple API that allows you to create, read, update and delete data. (Auth included)

Topics

Resources

License

Stars

Watchers

Forks

Languages