| 123456789101112131415161718192021222324 |
- {
- "name": "大健康接口文档",
- "version": "0.0.1",
- "description": "",
- "title": "Custom apiDoc browser title",
- "url": "http://localhost:8080/globle",
- "sampleUrl": "http://localhost:8080/globle",
- "header": {
- "title": "start",
- "content": "<h3>接口返回格式</h3>\n<h2>单条数据:</h2>\n<blockquote>\n<p>异常:</p>\n</blockquote>\n<pre><code class=\"language-javascript\">{ \n "status":1000,\n "data":{},\n "msg":"错误消息"\n}\n</code></pre>\n<blockquote>\n<p>正常:</p>\n</blockquote>\n<pre><code class=\"language-javascript\">{\n "status":0,\n "data":{"id":"1","name":"wb"},\n "msg":""\n}\n</code></pre>\n<h2>多条数据:</h2>\n<blockquote>\n<p>异常:</p>\n</blockquote>\n<pre><code class=\"language-javascript\">{\n "status":1000,\n "data":{},\n "msg":"错误消息"\n}\n</code></pre>\n<blockquote>\n<p>正常:</p>\n</blockquote>\n<pre><code class=\"language-javascript\">{\n "status":0,\n "data":{\n "list":[\n {"id":267,"city":"Wuhan"},\n {"id":266,"city":"Nanjin"}\n ],\n "page":{\n "totalNum":4,\n "totalPage":2,\n "currentPage":1\n }\n } \n}\n</code></pre>\n<h3>错误码</h3>\n<table>\n<thead>\n<tr>\n<th>解释</th>\n<th>错误码</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>参数不正确</td>\n<td>1001</td>\n</tr>\n<tr>\n<td>服务器异常</td>\n<td>1002</td>\n</tr>\n<tr>\n<td>url不存在</td>\n<td>1003</td>\n</tr>\n<tr>\n<td>手机号已被注册</td>\n<td>2001</td>\n</tr>\n<tr>\n<td>验证码错误</td>\n<td>2002</td>\n</tr>\n<tr>\n<td>用户名密码错误</td>\n<td>2003</td>\n</tr>\n<tr>\n<td>用户不存在</td>\n<td>2004</td>\n</tr>\n</tbody>\n</table>\n"
- },
- "template": {
- "forceLanguage": "zh",
- "withCompare": true,
- "withGenerator": true
- },
- "apidoc": "0.2.0",
- "generator": {
- "name": "apidoc",
- "time": "2016-02-19T03:41:49.314Z",
- "url": "http://apidocjs.com",
- "version": "0.15.1"
- }
- }
|