views.py 文件源码

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

项目:django-annotator 作者: PsypherPunk 项目源码 文件源码
def root(self, _):
        """
        Implements the
        `root <http://docs.annotatorjs.org/en/v1.2.x/storage.html#root>`_
        endpoint.

        :param _:
            :class:`rest_framework.request.Request` object—ignored here.
        :return:
            API information :class:`rest_framework.response.Response`.
        """
        return JsonResponse(
            {
                "name": getattr(settings,
                                "ANNOTATOR_NAME",
                                "django-annotator-store"),
                "version": annotator.__version__
            })
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号