(self, marker=None, limit=None, sort_key='id',
               sort_dir='asc')
return self._get_baymodels_collection(marker, limit,
                                              sort_key, sort_dir, resource_url)
Retrieve a list of Baymodels with detail.

        :param marker: pagination marker for large data sets.
        :param limit: maximum number of resources to return in a single result.
        :param sort_key: column to sort results by. Default: id.
        :param sort_dir: direction to sort. "asc" or "desc". Default: asc.
Retrieve a list of Baymodels with detail.
Retrieve a list of Baymodels with detail .
def detail(self, marker=None, limit=None, sort_key='id',
               sort_dir='asc'):
        """Retrieve a list of Baymodels with detail.

        :param marker: pagination marker for large data sets.
        :param limit: maximum number of resources to return in a single result.
        :param sort_key: column to sort results by. Default: id.
        :param sort_dir: direction to sort. "asc" or "desc". Default: asc.
        """
        context = pecan.request.context
        policy.enforce(context, 'baymodel:detail',
                       action='baymodel:detail')

        # NOTE(lucasagomes): /detail should only work against collections
        parent = pecan.request.path.split('/')[:-1][-1]
        if parent != "baymodels":
            raise exception.HTTPNotFound

        resource_url = '/'.join(['baymodels', 'detail'])
        return self._get_baymodels_collection(marker, limit,
                                              sort_key, sort_dir, resource_url)
def detail ( self , marker = None , limit = None , sort_key = 'id' , sort_dir = 'asc' ) : context = pecan . request . context policy . enforce ( context , 'baymodel:detail' , action = 'baymodel:detail' ) # NOTE(lucasagomes): /detail should only work against collections parent = pecan . request . path . split ( '/' ) [ : - 1 ] [ - 1 ] if parent != "baymodels" : raise exception . HTTPNotFound resource_url = '/' . join ( [ 'baymodels' , 'detail' ] ) return self . _get_baymodels_collection ( marker , limit , sort_key , sort_dir , resource_url )