def addEvent(): """ API call to add an event. INPUT: {"x": "", "y": "", "event_time": "", "event_type": ""} OUTPUT: Success: 1 Failure: 2 """ coord = request.form["coord"] event_time = request.form["event_time"] event_type = Event_Type.get_id(request.form["event_type"]) report_time = datetime.now() Event.addEvent(coord, event_time, report_time, event_type, ) return success_response(1, "Added")