How can you implement a simple REST API using Flask?
How can you implement a simple REST API using Flask?
Student
The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
1. Install Flask
2. Create the app structure
3. Basic REST API Example (CRUD)
Here is a complete working example that implements:
app.py
4. Run the API
Flask will start at:
Test the API using cURL or Postman
GET all
POST