<s> from hyperadmin . links import LinkPrototype <EOL> from hyperadmin . resources . endpoints import ResourceEndpoint <EOL> class ListLinkPrototype ( LinkPrototype ) : <EOL> def get_link_kwargs ( self , ** kwargs ) : <EOL> link_kwargs = { '<STR_LIT:url>' : self . get_url ( ) , <EOL> '<STR_LIT>' : self , <EOL> '<STR_LIT>' : '<STR_LIT:list>' , <EOL> '<STR_LIT>' : '<STR_LIT:list>' , } <EOL> link_kwargs . update ( kwargs ) <EOL> return super ( ListLinkPrototype , self ) . get_link_kwargs ( ** link_kwargs ) <EOL> class ListEndpoint ( ResourceEndpoint ) : <EOL> endpoint_class = '<STR_LIT:index>' <EOL> view_class = '<STR_LIT>' <EOL> prototype_method_map = { <EOL> '<STR_LIT:GET>' : '<STR_LIT:list>' , <EOL> } <EOL> name_suffix = '<STR_LIT:list>' <EOL> url_suffix = r'<STR_LIT>' <EOL> list_prototype = ListLinkPrototype <EOL> def get_link_prototypes ( self ) : <EOL> return [ <EOL> ( self . list_prototype , { '<STR_LIT:name>' : '<STR_LIT:list>' } ) , <EOL> ] </s>
