mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-18 03:16:40 +08:00
update 代码规范/api接口规范.md.
This commit is contained in:
parent
0c0da77ecd
commit
fe6ab3798a
@ -1,6 +1,8 @@
|
||||
#### Restful接口规范
|
||||
1、不推荐使用 rest 命名 url, 只能使用 get/post 方法。url 命名上规范如下:虽然 Rest 大法好,但是有时并不能一眼根据 url看出来是什么操作。
|
||||
url 格式为: /业务模块/子模块/动作
|
||||
url 格式为:
|
||||
/业务模块/子模块/动作
|
||||
|
||||
举例:
|
||||
```
|
||||
GET /department/get/{id} 查询某个部门详细信息
|
||||
|
Loading…
Reference in New Issue
Block a user