Skip to content

Instantly share code, notes, and snippets.


Parthiban Sudhaman parthi22

View GitHub Profile
parthi22 /
Last active Jan 5, 2020
todos file
from flask_restful import Resource
todos = [
"id": 1,
"item": "Create sample app",
"status": "Completed"
"id": 2,
parthi22 /
Created Jan 10, 2019
app file with routing
from flask import Flask
from flask_restful import Api
from resources.todo import Todo
app = Flask(__name__)
api = Api(app)
api.add_resource(Todo, "/todo/<int:id>")