Exemple #1
0
 def get(self, name):
   session_id = get_session_id(session, request)
   dao = ResponseDAO(session_id)
   found_response = dao.get_response_by_name(name)
   dao.close()
   resp = make_response(json_serialize(found_response, session_id=session_id), OK)
   resp.headers['Content-type'] = 'application/json'
   return resp
Exemple #2
0
 def get(self, name):
     session_id = get_session_id(session, request)
     dao = ResponseDAO(session_id)
     found_response = dao.get_response_by_name(name)
     dao.close()
     resp = make_response(
         json_serialize(found_response, session_id=session_id), OK)
     resp.headers['Content-type'] = 'application/json'
     return resp