ChallengeClub / tetris_score_server

tetris_score_server for https://github.com/seigot/tetris
MIT License
2 stars 6 forks source link

Dynamodbから評価結果を取得するためのapigateway-lambdaを追加 #42

Closed EndoNrak closed 1 year ago

EndoNrak commented 1 year ago

41

EndoNrak commented 1 year ago

やること

EndoNrak commented 1 year ago

api gateway を叩くとjsonが帰っていることを確認

curl https://j6y3fs9zhh.execute-api.ap-northeast-1.amazonaws.com/tetris_api_stage/results
{"Items": [{"RepositoryURL": "https:/github.com/seigot/tetris", "ValuePredictWeight": "", "MinScore": 0, "StdDevScore": 0, "ErrorMessage": "Cloning into 'tetris'...\nssh: Could not resolve hostname https: Name or service not known\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", "Status": "ER", "MeanScore": 0, "GameTime": 180, "MaxScore": 0, "Level": 0, "TrialNum": 10, "EndedAt": 1666433265, "DropInterval": 1000, "Branch": "master", "Id": "fb1a7225-ecb8-4216-bae6-d31fbc40f08e", "GameMode": "default", "CreatedAt": 1666433142}, {"RepositoryURL": "https://github.com/seigot/tetris", "ValuePredictWeight": "", "MinScore": 169, "StdDevScore": 0, "ErrorMessage": "", "Status": "S", "MeanScore": 169, "GameTime": 10, "MaxScore": 169, "Level": 1, "TrialNum": 1, "EndedAt": 1665154184, "DropInterval": 1000, "Branch": "master", "Id": "33a4e25e-46cb-49dd-ba61-87c3a0b7d759", "GameMode": "default", "CreatedAt": 1665154112}], "Count": 2, "ScannedCount": 2, "ResponseMetadata": {"RequestId": "TTSF4BME0TTM27BETR6NUDS7L3VV4KQNSO5AEMVJF66Q9ASUAAJG", "HTTPStatusCode": 200, "HTTPHeaders": {"server": "Server", "date": "Sat, 22 Oct 2022 15:58:59 GMT", "content-type": "application/x-amz-json-1.0", "content-length": "1208", "connection": "keep-alive", "x-amzn-requestid": "TTSF4BME0TTM27BETR6NUDS7L3VV4KQNSO5AEMVJF66Q9ASUAAJG", "x-amz-crc32": "319518293"}, "RetryAttempts": 0}}