#NEWLINE# def schema_path_helper( spec , path , view , **kwargs ) : #NEWLINE# #INDENT# 'Path helper that uses resty views\n    :param view: an `ApiView` object\n    ' #NEWLINE# resource = get_state ( current_app ) . views [ view ] #NEWLINE# rule = rules [ resource . rule ] #NEWLINE# operations = defaultdict ( Operation ) #NEWLINE# view_instance = view ( ) #NEWLINE# view_instance . spec_declaration ( view , operations , spec ) #NEWLINE# parameters = [ ] #NEWLINE# for arg in rule . arguments : #NEWLINE# #INDENT# parameters . append ( { #NEWLINE# #INDENT# 'name' : arg , #NEWLINE# 'in' : 'path' , #NEWLINE# 'required' : True , #NEWLINE# 'type' : 'string' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if spec : #NEWLINE# #INDENT# path [ 'parameters' ] = parameters #NEWLINE# #UNINDENT# path . path = flask_path_to_swagger ( resource . rule ) #NEWLINE# path . operations = dict ( ** operations )