- Implement API with golang with Echo
- go version 1.18
- REST API (create, update, insert, delete data)
- Storage: Redis and MySQL database
- Struct (Object Model)
- Call another REST API
- Explain functions in source code
- Postman API document
docker pull redis
docker pull mysql
brew install redis
- Start Docker Image for Redis with the following command
docker compose up mysql redis
- Start Go Service
go run main.go
- Import collection postman from go_ktb_test/postman/ktb.postman_collection.json to postman
- Create Product -> Using for create product
- Get All Product -> Using for get all product that be created
- Get Product By Id -> Using for get product by id
- Update Product By Id -> Using for update product by id
- Delete Product By Id -> Using for delete product by id
- Get Pokemon List (Call another REST API) -> -> Using for getting pokemon data from another rest api