Create GET request to retrieve Leaderboard data.
We can use dummy data like:
leaderboard = {
"honor_point":1,
"regular_point":10,
"completed_time_second":100
# other details needed for FrontEnd
}
We need a folder under api > leaderboard, this command might be useful
python manage.py startapp leaderboard
The GET request URL can be added in urls.py
The dummy data can be added in views.py
Once the data retrieved, we can attach the BE response to FE component.
Create GET request to retrieve Leaderboard data.
We can use dummy data like:
We need a folder under
api>leaderboard, this command might be usefulThe GET request URL can be added in
urls.pyThe dummy data can be added in
views.pyOnce the data retrieved, we can attach the BE response to FE component.