Skip to content

Instantly share code, notes, and snippets.

View parthi22's full-sized avatar

Parthiban Sudhaman parthi22

View GitHub Profile
@parthi22
parthi22 / app.py
Created January 10, 2019 09:30
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>")
@parthi22
parthi22 / todos.py
Last active January 5, 2020 03:29
todos file
from flask_restful import Resource
todos = [
{
"id": 1,
"item": "Create sample app",
"status": "Completed"
},
{
"id": 2,