def get(self, model_id, topic_id):
"""
Get all info related to the topic topic_id in model model_id
:param model_id:
:param topic_id:
:return:
"""
data = db_utils.get_topic(model_id, int(topic_id))
marshalled = marshal(data, api_utils.topic_fields)
response = "Topic retrieved."
return api_utils.prepare_success_response(200, response, marshalled)
评论列表
文章目录