#NEWLINE# @ tornado . web . authenticated #NEWLINE# def get( self , flash_messages = None ) : #NEWLINE# #INDENT# url_path = self . get_argument ( 'url_path' , '' ) #NEWLINE# method = self . get_argument ( 'method' , None ) #NEWLINE# method_file = ResourceMethod ( self . api_dir , url_path , method ) #NEWLINE# method_file . load_responses ( ) #NEWLINE# method_file . load_description ( ) #NEWLINE# if ( method is None ) : #NEWLINE# #INDENT# category = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# category = self . api_data . get_category ( method_file . id ) #NEWLINE# #UNINDENT# self . render ( 'create_resource.html' , protocol = 'rest' , category = category , method_file = method_file , SUPPORTED_FORMATS = SUPPORTED_FORMATS . keys ( ) , jsonrpc = jsonrpc_available , flash_messages = flash_messages )