Skip to content

wooheet/remote-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages