This api can handle incoming post request, take username and password form the user, and returns their profile data along with their attendance data.
- Flask
- BeautifulSoup4
- Requests
- CORS
- Gunicorn for WSGI
Navigate to the main folder. Activate virtualenvs if any. And then type this into the cmd
flask --app:app --debug run
or simple type this
python app.py
Head over to your local host, nothings going to pop up. Head over to PostMan and then check the api by providing a post request.
Provide your localhost as the url. Send out a POST request.
Should look something like this:
{ "username" : "230xxx", "password" : "yourPassword" }
This should work or await an appropriate error message.