Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 725 Bytes

README.md

File metadata and controls

61 lines (41 loc) · 725 Bytes

basic-rest-api

Basic REST API build with Go

Go version

Endpoints:

GET

/users -> Get all users
/users/:id -> Get user by id


POST

/users/:id -> Add a new user


DELETE

/users/:id -> Remove an existent user


PATCH

/users/:id -> Modify an existent user



Steps to build:

  1. Install dependencies
$ go get .
  1. Build executable
$ go build
  1. Run server
On Windows
$ ./restApi.exe
On Linux/MacOS
$ ./restApi