Skip to content

Create Leaderboard API #24

@joshuachai

Description

@joshuachai

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.

Metadata

Metadata

Assignees

Labels

backendTask must have a back end issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions