def to_dict(self): return { 'id': self.id, 'api_url': url_for('links_api.view', parent_id=self.parent_id, id=self.id), 'status': self.status, 'child': self.child, 'created_at': self.created_at, 'updated_at': self.updated_at, }
def to_dict(self): return { 'id': self.id, 'api_url': url_for('cards_api.view', id=self.id), 'title': self.title, 'category': self.category, 'text': self.text, 'author': self.author, 'aliases': self.aliases, 'references': self.references, 'created_at': self.created_at, 'updated_at': self.updated_at, }
def to_dict(self): return { 'id': self.id, 'api_url': url_for('cards_api.view', id=self.id), 'title': self.title, 'summary': html_summary(self.text), 'category': self.category, 'text': self.text, 'author': self.author, 'aliases': self.aliases, 'references': self.references, 'created_at': self.created_at, 'updated_at': self.updated_at, }
def to_dict(self): return { 'id': self.id, 'api_url': url_for('references_api.view', card_id=self.card_id, id=self.id), 'citation': self.citation, 'url': self.url, 'score': self.score, 'source': self.source, 'source_url': self.source_url, 'author': self.author, 'created_at': self.created_at, 'updated_at': self.updated_at, }