#NEWLINE# @ api . route ( '/students/<int:id>/registrations/' , methods = [ 'GET' ] ) #NEWLINE# @ etag #NEWLINE# @ json #NEWLINE# @ collection ( Registration ) #NEWLINE# def get_student_registrations( id ) : #NEWLINE# #INDENT# student = Student . query . get_or_404 ( id ) #NEWLINE# return student . registrations