- Install
go:
https://golang.org/dl/- Clone this repository:
git clone https://github.com/TimeReapz/national-itmx.git- Run script for create database:
sh script.sh- Run
main.go:
go run main.gocurl -X POST -H "Content-Type: application/json" -d '{"name": "Robert Downey Jr", "age": 40}' http://localhost:8080/customerscurl -X GET http://localhost:8080/customers/1curl -X PUT -H "Content-Type: application/json" -d '{"name": "Robert Downey Jr", "age": 40}' http://localhost:8080/customers/1curl -X DELETE http://localhost:8080/customers/1