clients.py 文件源码

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

项目:apimas 作者: grnet 项目源码 文件源码
def format_endpoint(self, resource_id):
        """
        This method concatenates the resource's endpoint with a specified
        identifier.

        Example: endpoint/<pk>/
        """
        if isinstance(resource_id, unicode):
            resource_id = resource_id.encode("utf-8")
        return urljoin(self.endpoint, quote(
            str(resource_id))) + TRAILING_SLASH
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号