#NEWLINE# @ api . route ( '/students/<int:id>' , methods = [ 'PUT' ] ) #NEWLINE# @ json #NEWLINE# def edit_student( id ) : #NEWLINE# #INDENT# student = Student . query . get_or_404 ( student ) #NEWLINE# student . import_data ( request . get_json ( force = True ) ) #NEWLINE# db . session . add ( student ) #NEWLINE# db . session . commit ( ) #NEWLINE# return { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# }