models.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:tucluster 作者: JamesRamm 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号