devbook - golang application crud
go get github.com/gorilla/mux
go get github.com/go-sql-driver/mysql
curl --location --request POST 'localhost:5000/usuarios' \
--header 'Content-Type: application/json' \
--data-raw '{
"nome": "Luiz",
"email": "luiz.henrique@gmail.com"
}'
curl --location --request GET 'localhost:5000/usuarios'
curl --location --request GET 'localhost:5000/usuarios/1'
curl --location --request PUT 'localhost:5000/usuarios/1' \
--header 'Content-Type: application/json' \
--data-raw '{
"nome": "Alberto",
"email": "alberto@gmail.com"
}'
curl --location --request DELETE 'localhost:5000/usuarios/1'