#NEWLINE# def _filter_methods( self , methods = ( 'GET' , 'POST' , 'PUT' , 'DELETE' ) ) : #NEWLINE# #INDENT# 'Filter methods to generate endpoints for' #NEWLINE# return self . rule . methods . intersection ( methods )