An easy template to access and get your data on aws DynamoDB.
In your machine install AWS-CLI and CONFIGURE to save configuration of the your database
If you already have golang installed you can install by running the command:
go get -u ./...
To start the project run the command:
go run cmd/app/main.go
You can see in your terminal this log:
service running on port :8080
This route return life of the project
GET - http://localhost:8080/health
This route return all data in your database
GET - http://localhost:8080/product
This route return specific data in your database
GET - http://localhost:8080/product/{ID}
This route create on item in your database
POST - http://localhost:8080/product
{
"name": "product"
}
This route update on item in your database
PUT - http://localhost:8080/product/{ID}
{
"name": "product1"
}
This route remove on item in your database
DELETE - http://localhost:8080/product/{ID}