update 代码规范/api接口规范.md.

This commit is contained in:
zhuoda 2021-05-19 10:47:36 +08:00 committed by Gitee
parent 0c0da77ecd
commit fe6ab3798a

View File

@ -1,6 +1,8 @@
#### Restful接口规范
1、不推荐使用 rest 命名 url 只能使用 get/post 方法。url 命名上规范如下:虽然 Rest 大法好,但是有时并不能一眼根据 url看出来是什么操作。
url 格式为: /业务模块/子模块/动作
url 格式为:
/业务模块/子模块/动作
举例:
```
GET /department/get/{id} 查询某个部门详细信息