Django-rest framwork RetrieveModelMixin单个数据查询

在浏览器中输入网址http://120.79.84.147:3389/show/TV/6/可以访问获取单一信息的接口(id为6的数据): 这个id为主键由字段lookup_field来决定 看看源码: class GenericAPIView(views.APIView): pass # If you want to use object lookups other than pk, s
相关文章
相关标签/搜索