Open terminal / PowerShell: mkdir flask-student-app cd flask-student-app
Create a file named: app.py
pip install flask python app.py(running)
open new terminal
Invoke-RestMethod -Uri "http://127.0.0.1:5000/students" -Method POST
-Headers @{"Content-Type"="application/json"} `
-Body '{"name":"Alice","roll":"CS001"}'
http://127.0.0.1:5000/students
in terminal Invoke-RestMethod -Uri "http://127.0.0.1:5000/students" -Method GET
to delete student Invoke-RestMethod -Uri "http://127.0.0.1:5000/students/1" -Method DELETE