- Used to run the program
go run main.go
- Used to create an executable file
go install main.go
- Used to compile the program
go build main.go
- Used to get the dependecies
go get <package name>
- Used to get all users
http://localhost:3000/users
- Used to get a specific user
http://localhost:3000/users/<id>
examplehttp://localhost:3000/users/1
- Used to post(add) a user url
http://localhost:3000/users
- POST sample
{"FirstName":"<name>","SecondName":"<name>"}
- POST example
{"FirstName":"John123","SecondName":"test33"}
- used to update a user with a specific id
http://localhost:3000/users/<id>
examplehttp://localhost:3000/users/1
- PUT sample
{"ID":"<id>","FirstName":"<name>","SecondName":"<name>"}
- PUT example
{"ID":"1","FirstName":"John","SecondName":"peter"}
- used to delete a user with a specific id
http://localhost:3000/users/<id>
examplehttp://localhost:3000/users/1