Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Way to unreserve a task and a way to change which task is reserved. #438

Open
BillTheBeast opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
feature New feature to add

Comments

@BillTheBeast
Copy link

What do you want to see in the API?

An endpoint to unreserve a daily task
For example: /dailyTasks/unreserve/
Since if player already has a task we don't need to specify which one as the server already has that info.

Also an endpoint for changing which task is reserved would be nice.
We could just reuse the /dailyTasks/reserve/:_id for this.
Alternatively /dailyTasks/switch/:_id.

How do you think this should work?

Unselecting a task:
If player has a task unreserve it, thus making it available for other players and remove marking that the player has this task selected.
If player has no task reserved, return error.

Switching/changing the reserved task:
If this is called when player already has a task the current one is unreserved and the new one provided is selected.
If the new one is already reserved then don't perform the switch and return an error.
If the task player has is the same one as the one player tries to change to do nothing and return error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature to add
Projects
Status: Backlog
Development

No branches or pull requests

2 participants