Skip to content

Instantly share code, notes, and snippets.

Avatar

Parthiban Sudhaman parthi22

View GitHub Profile
@parthi22
parthi22 / app.py
Created Jan 10, 2019
app file with routing
View app.py
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 Jan 5, 2020
todos file
View todos.py
from flask_restful import Resource
todos = [
{
"id": 1,
"item": "Create sample app",
"status": "Completed"
},
{
"id": 2,