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