测试接口

#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

原文地址:https://www.cnblogs.com/aa1bb2/p/13887850.html