-
Notifications
You must be signed in to change notification settings - Fork 4
API仕様
じんさん edited this page Dec 29, 2021
·
6 revisions
path | description | param | response | permission |
---|---|---|---|---|
/status | github activityから取得したユーザーのパラメータをJSONで返却 | user:githubのuser id | {"user":"ShinoharaTa","points":302,"hp":90,"power":98,"intelligence":6,"defence":6,"agility":102,"total":302,"level":13} |
allUsers |
/register | ユーザーのGitHub情報を登録する | github_id, display_name, screen_name, image_path | 成功時:{"status":"success"} , 失敗時(データタ不足時):{"status":faild"}
|
? |
/userOGP |
/status の情報などをもとにOGP用画像生成 |
user: githubのuser id | 画像 さんぷる | allUsers |
/sanpai | 参拝処理をする | github_id | 成功時:{"status":"success","add_exp":20,"level":13,"exp":289,"next_exp":447} 参拝失敗: {"status":"expire","add_exp":0,"level":13,"exp":329,"next_exp":447} 処理失敗(未登録): {"status":"faild","message":"not registered"} 処理失敗(サーバーエラー, firestoreの更新失敗とか?): {"status":"missing server error."}
|