Create New Admin Route get_quest_participants #325
Labels
Good first issue
Good for newcomers
OD Hack
Issue reserved for the OD Hack
open for contribution
An issue that is available for an Only Dust contribution
Description 📹
Implement a new admin route get_quest_participants that retrieves a list of addresses who have completed all tasks of a specific quest. The route will accept a quest_id parameter, fetch all task IDs associated with that quest, and then identify the addresses that have completed all these tasks. This will allow admin users to see which participants have fully completed a quest. The route should be secured using the existing authentication middleware to ensure only authorized admin users can access this information.
The returned addresses should be in hex format.
Proposed Actions 🛠️
Here’s a checklist of actions to follow for resolving this issue:
Fork and Create Branch:
Fork the repository and create a new branch using the issue number:
Implement Changes:
Create the Route: add a new handler in src/endpoints/admin/quest_boost: get_boost_winners.rs
Define Request Parameters:
Implement the Handler Logic (should look something like that):
Run Tests and Commit Changes:
Testing:
quest_id
values.auth_middleware
.Commit Changes:
git commit -m "Fix: Implement get_quest_participants admin route"
Required 📋
To keep our workflow smooth, please make sure you follow these guidelines:
Close #[issue_id]
.Thank you for your contribution 🙏
The text was updated successfully, but these errors were encountered: