#1.查询所有用户

http://192.168.56.100:8888/user/user/

#2.查询id=1的用户

http://192.168.56.100:8888/user/user/1/

#3.查询 用户名(tom),激活的用户

http://192.168.56.100:8888/user/user/?username=tom&phone=&is_active=true

#4.查询所有用户 用id 反向排序

http://192.168.56.100:8888/user/user/?ordering=-id

#5.查询用户表中第一页,每页显示一条数据

http://192.168.56.100:8888/user/user/?page=1&page_size=1

posted on 2020-10-27 21:51  yujian8759  阅读(88)  评论(0编辑  收藏  举报