ruanmarvila/gerenciador-tarefas-spring ? reverse-engineered prompt
Reverse engineered prompt
Build me a Spring Boot REST API for a task manager.
I want users to be able to register, log in, refresh their token, and restore a disabled account if it is still within the recovery window. After that, they should be able to view and update their own profile, change their password, and soft delete their account. Logged in users should also be able to create tasks, list only their own tasks, update a task’s title, description, and status, soft delete tasks, view deleted tasks in a trash area, restore a deleted task, and permanently clear the trash.
Please set it up with a clean layered structure, JWT security, JPA entities, Bean Validation, Flyway migrations, and Swagger UI. Use H2 for local development, and make sure the API is protected so each user only sees their own data. Add unit and integration tests for the main flows too. If you need to check current Spring or library docs online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit