the following is my code for get method:
def get(self, ques_no, i):
j=i
opt_dict = {}
for ques in session.query(Options.optn).filter(Options.q_no == ques_no)[j:j+2]:
opt_dict.update({i:ques.optn})
i=i+1
return jsonify(opt_dict)
api.add_resource(store_option, '/option/&&', endpoint = 'option_id')
i need to pass to arguments to my get method to access the database. but i'm not able pass to arguments. how can i do that?? any help will be appreciated..
ques_no
andi
, no? I don't understand your question, then.