Narendra0777R/ticketing-system-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple ticketing system API for IT support requests.
I want a Java 17 Spring Boot backend that uses MySQL and Spring Data JPA, with full create, read, update, and delete support for tickets. Each ticket should have a title, description, status, and timestamps, with new tickets starting as OPEN automatically. When a ticket is moved to RESOLVED, it should also save a closed time, and both timestamps should be accurate to the second.
Please expose REST endpoints so I can create a ticket, get all tickets, get one ticket by id, update a ticket status, and delete a ticket. If someone asks for a ticket that does not exist, return a clean 404 response instead of a crash. Keep the app simple and organized, and make sure it runs with Maven. If you need to check current Spring Boot or JPA details online, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit