def get(self): backend = BACKENDS[DEFAULT_SERVICE] title = self.request.get('title') # no user-specific storage inf = Info.query(Info.title == title).get() if inf is None: self.response.write('data with title {} not found'.format(title)) return val = backend.get(inf.refs) self.response.write(val)
def get(self): self.response.content_type = 'application/json' self.response.write(json.dumps({'titles': [i.title for i in Info.query()]}))