@crossdomain
    @endpoint
    def get(self, **kwargs):
        current_app.logger.info("GETting record(s) from database")
        records = []

        # generate meta information
        params = {'query': self.access_limits(**kwargs), 'projection': {}}
        if '_limit' in request.args:
            try:
                params['limit'] = int(request.args.get('_limit'))
            except __HOLE__:
                current_app.logger.debug("No record limit override")
                pass
        if '_fields' in request.args:
            params['projection'] = \
                {r: True for r in request.args.get('_fields', '').split(',')}
        params['projection'].update(self.limit_fields(**kwargs))

        if 'obj_id' in kwargs:
            records = self.db_query.get_instance(
                self.db_collection, kwargs['obj_id'], **params)
            if records in [{}, None]:
                return self._make_response(404)
        else:
            records = \
                self.db_query.get_collection(self.db_collection, **params)

        return self._make_response(200, self.transform_payload(records))
dataset/ETHPy150Open gevious/flask_slither/flask_slither/resources.py/BaseResource.get