def on_get(self, req, resp, name):
'''Retrieve a JSON representation of a single ``Model`` based on its'
name.
Example::
http localhost:8000/models/{name}
'''
model = self.get_object(name)
resp.status = falcon.HTTP_OK
resp.body = model.to_json()
评论列表
文章目录