modulepackage
0.0.0-20220523065608-d808c9b523b2
Repository: https://github.com/wooheet/remote-config.git
Documentation: pkg.go.dev
# README
Remote config Auth Server
π Tech Stack
- Go
- Gingonic
- MySQL
- Redis
- Docker
- Travis CI
- Deepsource Go
π API Spec
Config
Token μ‘°ν
GET /v1/config?store_id=hackingrowth
Status Code: 200
Response
{
"store_id": "hackinggrowth",
"token": "ab12cbf123ff2",
"tracker_type": "mixpanel"
"inserted_at": "2022-01-01T00:00:00.00Z",
"updated_at": "2022-01-01T00:00:00.00Z",
}
Token λ±λ‘
POST /v1/config
Body
{
"token": "ab12cbf123ff2",
"tracker_type": "mixpanel",
"store_id": "hackinggrowth"
}
Status Code: 201
Token μ λ°μ΄νΈ
[PUT|PATCH] /v1/config?store_id=hackingrowth
Body
{
"token": "ab12cbf123ff3",
"tracker_type": "mixpanel"
}
Status Code: 200
Response
{
"store_id": "hackinggrowth",
"token": "ab12cbf123ff3",
"tracker_type": "mixpanel"
"inserted_at": "2022-01-01T00:00:00.00Z",
"updated_at": "2022-01-01T00:00:00.00Z",
}
Token μμ
DELETE /v1/config?store_id=hackingrowth
Status Code: 204
Script tag μ€μΉ
GET /v1/scripttag?store_id=hackingrowth?tracker_type=mixpanel
Status Code: 200
Auth
Login
POST /v1/login
Status Code: 201
Logout
DELETE /v1/logout
Status Code: 201