Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.14 KB

File metadata and controls

47 lines (37 loc) · 1.14 KB

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