#NEWLINE# @ api_v2 . route ( '/user/<user_id>/' ) #NEWLINE# def user_info( user_id ) : #NEWLINE# #INDENT# username = User . query . get ( user_id ) . username #NEWLINE# firstname = User . query . get ( user_id ) . firstname #NEWLINE# return jsonify ( data = dict ( username = user_id , firstname = firstname ) )