baijugoradia/rest-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple REST API for managing employees and their related info.
I want to be able to create, view, update, and delete departments, employees, contacts, and addresses. Employees should belong to a department, and an employee can have contact details and an address attached to them. The API should return JSON responses and use endpoints like /api/department, /api/employee, /api/contact, and /api/address.
Please make the employee flow support nested contact and address data when creating or updating an employee, and make sure deleting a department is blocked if any employee is still linked to it. I also want the basic Laravel setup working, with migrations, env config, and a local server ready to run. If you need to check current framework docs online, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit