LeNelSoN / you-are-the-hero

L'API dont vous êtes le héros is an interactive Java API that brings the adventure of "choose your own adventure" stories to life. Users can embark on unique journeys, make decisions at each step, and create dynamic narratives, all while experiencing the nostalgia of classic adventure books.
GNU General Public License v3.0
2 stars 10 forks source link

feat(5): delete user #50

Closed padabou closed 1 month ago

padabou commented 1 month ago

[X] Implement a DELETE endpoint (e.g., /users/{id} or /users/{username}) to handle user deletion requests. [X] Ensure that the endpoint validates the user's identity and permissions before allowing deletion (e.g., only admins or the user themselves can delete their account). [X] Add error handling for scenarios where the user does not exist or the user is unauthorized to delete the account. [X] Update the user service to handle the logic for deleting a user from the database.

LeNelSoN commented 1 month ago

close #5