Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
dbp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • credit_data
  • dbp
  • Wiki
  • doc_specification

doc_specification · Changes

Page history
lila created page: doc_specification authored Jun 14, 2019 by 李林坳's avatar 李林坳
Hide whitespace changes
Inline Side-by-side
Showing with 58 additions and 0 deletions
+58 -0
  • doc_specification.md doc_specification.md +58 -0
  • No files found.
doc_specification.md 0 → 100644
View page @ a070740a
# 用户文档编写规范
## 基本原则
1. 每个接口的文档应该具有相同的结构,结构参考 文档格式
2. 不同接口中相同的内容,以独立的md文件编写,在不同接口的md文件中引用
## 文档格式
每个功能的接口文档都大体由以下部分组成。其中公共的部分都在独立的md文件中编写,并在具体功能的md文件中引用。
```
## 文档标题 (使用二级标题,标题后跟分隔线)
----
文档功能基本描述
{% include '../service_hosts_pub.md' %}
### 调用路径
> /interface/path
### 输入参数
具体输入参数的说明
{% include './common/authenticate.md' %}
### 输出结果
#### 输出结果字段含义
....
{% include './common/error_code.md'%}
```
## 目录结构
文档目录结构组织如下
```
├── dbp.wiki
│   ├── common
│   ├── example_response
│   ├── example_source_code
│   └── tables
└── dbp.wiki
   ├── common
   ├── example_response
   ├── example_source_code
   └── tables
```
* common 存放共用的md文件
* example_response 响应的json样例文件
* example_source_code 样例代码文件
* tables 表格对应的csv文件
Clone repository
  • README
  • SUMMARY
  • bidchance.wiki
    • README
    • open_bidchance_batchGetDatas
    • open_bidchance_batchGetKeywords
    • open_bidchance_count
    • open_bidchance_find
    • open_bidchance_keywords
    • open_bidchance_search
    • open_bidchance_searchPage
  • common
    • authenticate
    • error_code
    • output_format
    • service_hosts_pub
  • company.wiki
    • README
View All Pages