repositorypackage
0.0.0-20230627022037-2739d9d2d07f
Repository: https://github.com/ariashabry/technicaltest.git
Documentation: pkg.go.dev
# README
TechnicalTest Golang K-Style Hub
Name : Aria shabry ([email protected])
Setting Environtment
- Update your environtment at env.yaml file like DB_Host, DB_PORT, DB_NAME, and etc.
- If your environtment error, please check env.yaml file and ConnectionString at ./helpers/env/env.go
- Database Name = skincare
- Import Database using skincare.sql file
- Application address : http://localhost:5000/api/
Answer
- Insert data ke tabel Member
- screenshot hasil : ./1-CreateMember.png
- api : POST/http://localhost:5000/api/member
- request body : raw/json
- example :
{
"Username": "Puan Maharani",
"Gender": "perempuan",
"SkinType": "normal",
"SkinColor": "light"
}
- Update data tabel Member
- screenshot hasil : ./2-UpdateMember.png
- api : PUT/http://localhost:5000/api/member
- request body : raw/json
- example
{
"Username": "Puan Maharani",
"Gender": "perempuan",
"SkinType": "oily",
"SkinColor": "light"
}
- Delete data tabel Member
- screenshot hasil : ./3-DeleteMember.png
- api : DELETE/http://localhost:5000/api/member/:id
- :id merupakan id_member
- Select all tabel Member
- screenshot hasil : ./4-GetAllMember.png
- api : GET/http://localhost:5000/api/member
- Select product by ID_PRODUCT
- screenshot hasil : ./5-GetProductById.png
- api : GET/http://localhost:5000/api/product/:id
- :id merupakan id produk
- Insert Like Review
- screenshot hasil : ./6-InsertLikeReview.png
- api : POST/http://localhost:5000/api/like
- request body : raw/json
- example
{
"IdReview": 2,
"IdMember": 1
}
- Delete Cancel Like Review
- screenshot hasil : ./7-DeleteCancelLikeReview.png
- api : DELETE/http://localhost:5000/api/cancel-like
- request body : raw/json
- example
{
"IdReview": 2,
"IdMember": 1
}
Jika ada pertanyaan, silahkan hubungi saya di : [email protected]