@app.route('/events/<public_id>', methods=['GET'])
def event_read_api(public_id):
 valid_public_id(public_id)
 try:
  event = g.db_session.query(Event).filter((Event.namespace_id == g.namespace.id), (Event.public_id == public_id), (Event.deleted_at == None)).one()
 except NoResultFound:
  raise NotFoundError("Couldn't find event id {0}".format(public_id))
 return g.encoder.jsonify(event)

@ app . route ( '/events/<public_id>' , methods = [ 'GET' ] ) def event_read_api ( public_id ) : valid_public_id ( public_id ) try : event = g . db_session . query ( Event ) . filter ( ( Event . namespace_id == g . namespace . id ) , ( Event . public_id == public_id ) , ( Event . deleted_at == None ) ) . one ( ) except NoResultFound : raise NotFoundError ( "Couldn't find event id {0}" . format ( public_id ) ) return g . encoder . jsonify ( event )
get all data for an existing event .