I am creating a game and I need to use a Leaderboard to store and retrieve players ID and score, for that I want to have a table with namely 4 columns
Player_ID; Player_Name, Player_score and Update_Date
I wan to use the endpoints REST apis wthout authentication
please note cors should be enabled allowing usage from anywhere (no restriction)
[login to view URL]
from my game I will use something like the following:
Player_ID = "some value";
result = http_get("https://xxxx/id?username=" + Player_ID);
API should behave as following:
*if Player_ID exist then return the associated Player_score
* if Player_ID does not exist then it return string "No ID is found"
Request2: (to register new player)
the request is containing player_ID ,Player_Name and player_score , something like the following:
var message = "&Player_ID" = Player_ID + "&name=" + player_name + "&score=" + string(player_score);
post = http_post_string("https://xx/idmessage=" + message);
Request3: (update score)
var message = "&Player_ID" = Player_ID "&score=" + string(player_score);
Lambda will search for the player_ID and update the associated player_Score column
last but not least; I want an API request that return top 10player (Names and scores) in json format.
thats it. If u think u can do that, leave me a message.
4 pekerja bebas membida secara purata $39 untuk pekerjaan ini
Hey, I've vast experience on API service development and DynamoDB. You've specified request and response format probably JSON I guess. Feel free to message me so we can discuss.