整个实训阶段预期的成果
1 API | 有 |
---|
2 网站 | 没有 | 3 APP | 有 | 4 微信小程序 | 有,不是云开发 |
一、登录
接口功能描述 | 实现用户的登录 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/login | 请求方式Get/Post | POST | 接口参数列表 | “username”:“yudan”,“password”:“123” | 接口返回数据结构说明 |  | PostMan测试截图: |  |
二、注册
接口功能描述 | 实现用户的注册 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/register | 请求方式Get/Post | POST | 接口参数列表 | “username”:“yudan”,“password”:“123” | 接口返回数据结构说明 |  | PostMan测试截图: |  |
三、添加用户
接口功能描述 | 添加用户 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/user | 请求方式Get/Post | POST | 接口参数列表 |  | 接口返回数据结构说明 |  | PostMan测试截图: |  |
四、查询所有用户
接口功能描述 | 查询所有用户 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/alluser | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
五、查询所有商品
接口功能描述 | 查询所有商品 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/products | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
六、查询所有商品类别
接口功能描述 | 查询商品的所有类别 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/productcategory | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
七、商品详情
接口功能描述 | 根据商品id查看商品详情 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/pcontent?id=21 | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
八、根据类别查询商品
接口功能描述 | 根据商品类别查询商品 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/selectProductcategory?category=盆花类 | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
九、根据商品名称模糊查询
接口功能描述 | 模糊查询商品 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/product?productname=香 | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
十、修改商品
接口功能描述 | 修改商品信息 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/product | 请求方式Get/Post | PUT | 接口参数列表 |  | 接口返回数据结构说明 |  | PostMan测试截图: |  |
十一、增加商品
接口功能描述 | 增加商品 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/product | 请求方式Get/Post | POST | 接口参数列表 |  | 接口返回数据结构说明 |  | PostMan测试截图: |  |
十二、删除商品
接口功能描述 | 删除商品 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/product/id/441 | 请求方式Get/Post | DELETE | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
十三、查询所有订单
接口功能描述 | 实现所有订单的查询 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/allorder | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
十四、根据收货人姓名查询订单
接口功能描述 | 根据收货人姓名查询订单 |
---|
接口请求URL地址 | http://101.37.150.37:8080/myhomework/rest/receiverName?receiverName=11 | 请求方式Get/Post | GET | 接口参数列表 | | 接口返回数据结构说明 |  | PostMan测试截图: |  |
|