Deployed at https://iitk-coin-test.herokuapp.com/.
Enter in terminal
curl -d '{"rollno": "<rollno>"}' -H 'Content-Type: application/json' https://iitk-coin-test.herokuapp.com/coins
Language : python3
Framework: Flask
Dependencies:
- flask
- python-dotenv
Endpoints:
- '/' or '/index' or '/home' : Landing Page
- '/coins' : Task Endpoint
- '/coins-form' : Additional endpoint created for POST request via html form
git clone <link-to-repo>
cd <repo>
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Head over to localhost:8080
flask run -p 8080
curl -d '{"rollno": "<rollno>"}' -H 'Content-Type: application/json' localhost:8080/coins
NOTE: If you want to give a POST request via rather an html form, head over to endpoint /coins-form on browser.