def get(self) -> dict: """Get resource data.""" schema = GETItemResponseSchema().bind(request=self.request, context=self.context) appstruct = {} first_version = self._get_first_version(self.context) if first_version is not None: appstruct["first_version_path"] = first_version cstruct = schema.serialize(appstruct) cstruct["data"] = self._get_sheets_data_cstruct() return cstruct
def get(self) -> dict: """Get resource data.""" schema = GETItemResponseSchema().bind(request=self.request, context=self.context) appstruct = {} first_version = self._get_first_version(self.context) if first_version is not None: appstruct['first_version_path'] = first_version cstruct = schema.serialize(appstruct) cstruct['data'] = self._get_sheets_data_cstruct() return cstruct
def get(self) -> dict: """Get resource data.""" with statsd_timer('process.get', rate=.1, registry=self.registry): schema = GETItemResponseSchema().bind(request=self.request, context=self.context) appstruct = {} first_version = self._get_first_version(self.context) if first_version is not None: appstruct['first_version_path'] = first_version cstruct = schema.serialize(appstruct) cstruct['data'] = self._get_sheets_data_cstruct() return cstruct