The best admin interface framework for Flask. With scaffolding for MongoEngine, Django and SQLAlchemy.
@priyanshu-agarwal1
Hi its a simple doubt can anybody let me know how to pass multiple parameter in flask restful get request
from flask import Flask
from flask_restful import Resource,Api
app=Flask(name)
api=Api(app)
class get_history(Resource):
def get(self,qid,startdate,enddate):
startdate=datetime.strptime(startdate,'%Y-%m-%d')
startdate=startdate.strftime('%Y-%m-%d')
enddate=datetime.strptime(enddate,'%Y-%m-%d')
enddate=datetime.strftime('%Y-%m-%d')
qid=str(qid)
data = get_history( qid,startdate, enddate)
return data
api.add_resource(get_history,'/get_history/<string:qid>&<string:startdate>&<string:enddate>')
if name == 'main':
app.run( )
above code gives error