Exemple #1
0
 def get(self):
   session_id = get_session_id(session, request)
   constraint_id = request.args.get('constraint_id', -1)
   dao = ResponseDAO(session_id)
   responses = dao.get_responses(constraint_id)
   resp = make_response(json_serialize(responses, session_id=session_id), OK)
   resp.contenttype = 'application/json'
   return resp
Exemple #2
0
 def get(self):
     session_id = get_session_id(session, request)
     constraint_id = request.args.get('constraint_id', -1)
     dao = ResponseDAO(session_id)
     responses = dao.get_responses(constraint_id)
     resp = make_response(json_serialize(responses, session_id=session_id),
                          OK)
     resp.contenttype = 'application/json'
     return resp