-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffb167d
commit 797772e
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
# doo | ||
|
||
## 接口文档模板 | ||
|
||
目前采用 Excel 来书写接口文档,其中 INDEX 是基本信息页,提供如下信息: | ||
|
||
| Field | Value | | ||
| ----------- | ----------------- | | ||
| Title | EOMS接口文档 | | ||
| Description | | | ||
| Version | 1.0 | | ||
| BasePath | <http://emos.com> | | ||
|
||
也可以提供全局请求和响应的 Headers | ||
|
||
| 请求Headers | 参数名 | 测试数据 | | ||
| --------- | ------------ | --------------------------------- | | ||
| | Content-Type | application/x-www-form-urlencoded | | ||
| 响应Headers | | | | ||
| | Content-Type | application/json | | ||
|
||
示例见 doo.xlsx | ||
|
||
## 接口文档解析 | ||
|
||
```python | ||
python doo.py | ||
``` |