shivendra0852/Hotel-Booking-System-Rest-API ? reverse-engineered prompt
Reverse engineered prompt
Build me a Spring Boot REST API for a hotel booking app called StayWell.
I want customers to be able to register, log in, search for hotels and rooms, view details, and make reservations. I also want an admin area where hotel and room records can be added, removed, and viewed. Include hotel management features like amenities, room types, location, ratings, reviews, photos, and promotions if they fit naturally.
Use MySQL for the database, Spring Data JPA and Hibernate for persistence, validation for form checks, and Swagger UI so I can test the endpoints easily. Make sure the app has proper user authentication and login and logout support, and keep the code clean and easy to run locally with the database settings in application.properties.
If you need to look up anything current, go ahead and check the latest docs online. Please also include basic tests and make sure the API starts on a local port like 8808.
Are you gonna build this?
make sure you review the code using coderabbit