Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.
This repository was archived by the owner on May 22, 2023. It is now read-only.

Scoreboard #5

Description

@Blizzzard1234

Scoreboard/Database

Get Score

on the endpoint getscore(id)

parameter:
id: the id of the user you want to get the score of (Integer)

Return:
score of the user as an Integer

Get Total Distance

on the endpoint getdistance(id)

parameter:
id: the id of the user you want to get the total distance of (Integer)

Return:
total distance of the user as an Integer

Get Top 10

on the endpoint gettop10()

parameter:
No parameter needed

return:

[
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
(Username, score, TotalDistance),
]

returns the top 10 highest scoring Users, as well as their scores and total distance

Get My Position

on the endpoint getmypos(id)

parameter:
id: the id of the user you want to get the total distance of (Integer)

return:
Current position of user with ID as an Integer

###Change Username

on the endpoint changename(id, Username)

parameter:

id: the id of the user you want to get the total distance of (Integer)
Username: The new Username you want to have (String)

Get My Name

on the endpoint getname(id)

parameter:
id: the id of the user you want to get the total distance of

return:
Current Username of ID

Change Username

on the endpoint changename(id, Username)

parameter:
id: the id of the user you want to get the total distance of

return:
Username as String

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions