def get(self, dataName): """ ref: web_api.yaml :param dataName: :return: """ data_name = utils.encode_if_unicode(dataName) data_service = DataService(data_name) thumb = data_service.get_thumb() return self.render_json_str(thumb.view())
def get(self, dataName): """ ref: web_api.yaml :param dataName: :return: """ data_name = dataName if isinstance(data_name, unicode): data_name = data_name.encode('utf-8') data_service = DataService(data_name) thumb = data_service.get_thumb() return self.render_json_str(thumb.view())