pesu-dev/auth — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python web API called PESUAuth that lets PESU students check whether their PESU Academy login details are valid. It should accept a username, SRN, or PRN and password, contact PESU Academy to verify them, and return a clean JSON response saying whether it worked, a message, and the time of the request.
Please make privacy the main point. Do not save usernames, passwords, or personal data anywhere. If the caller asks for it, the API should also fetch and return the student profile info, specific requested profile fields, and the Know Your Class and Section details. If login fails, it should not include profile data.
I also want a health check, a simple home page with interactive API docs, and a route that sends people to the GitHub readme. Make it easy to run locally on port 5000 with Python or Docker, and include basic tests and clear setup instructions.
Want more depth? Deep Reverse