Febryan1453/absensi-jossh ? reverse-engineered prompt
Reverse engineered prompt
Build me a school attendance REST API for a school admin system.
I want it to handle students, teachers, parents, classes, subjects, rooms, school sessions, academic years, teaching schedules, attendance for students and teachers, devices for attendance scanning, dashboard data, notifications, and audit trail events. It should use JWT login, role based access for admin, teacher, student, and parent, and protect routes properly.
Please keep the code organized in layers, with routes, controllers, services, repositories, middleware, validation, and utility helpers. Use the provided MySQL schema as the source of truth and don’t change the database structure. Add clean JSON responses, error handling, request validation, and basic security like auth, device auth, CORS, and rate limiting. Include sample seed data support and make sure the API is ready to test with Postman.
If you need to check current docs for anything, feel free to look them up online.
Are you gonna build this?
make sure you review the code using coderabbit