You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: