We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
心跳(/health)
開始遊戲(/games)
create_game()、join_game()、start_game()
取得遊戲狀態(/games/{gameId}/status) Authorization: Bearer <playerJwt>
GET /users/me
GET /games/{game_id}/status Authorization: Bearer <playerJwt>
https://{遊戲前端主機}/games/{gameId}?token={playerJwt}
/games/{gameId}/status Authorization: Bearer <playerJwt>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
心跳(/health)
,固定回傳status = 200開始遊戲(/games)
,把既有的create_game()、join_game()、start_game()
整合在同一支API中取得遊戲狀態(/games/{gameId}/status) Authorization: Bearer <playerJwt>
,透過playerJWT,去訪問大平台的GET /users/me
取得該用戶ID,就能透過用戶ID、gameID辨別是哪一場遊戲中的玩家,playerJWT短時間不會變,cache起來https://{遊戲前端主機}/games/{gameId}?token={playerJwt}
,顯示遊戲畫面,再去呼叫後端API(/games/{gameId}/status Authorization: Bearer <playerJwt>
)取得遊戲狀態The text was updated successfully, but these errors were encountered: