Available Scripts In the project directory, you can run:
go run main.go
Then, we have CRUD request using "curl" :
Fetch all
curl localhost:9090/users
Add Users
curl -d '{"email":"[email protected]","password":"123456"}' -H "Content-Type: application/json" -X POST localhost:9090/users
Get user by Id
curl POST localhost:9090/users/4
DELETE By ID
curl -X DELETE localhost:9090/users/18