From cb4168d0f2869cbc3655f24b1edc36837b126079 Mon Sep 17 00:00:00 2001 From: ufologist Date: Mon, 21 Apr 2014 11:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=96=87=E6=A1=A3=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E4=BE=8B=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/demo/test-interface.json | 27 ++++++++++ ...5\345\217\243\346\226\207\346\241\243.doc" | 53 +++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 WebContent/demo/test-interface.json create mode 100644 "WebContent/demo/\345\257\274\345\207\272\347\232\204\346\216\245\345\217\243\346\226\207\346\241\243.doc" diff --git a/WebContent/demo/test-interface.json b/WebContent/demo/test-interface.json new file mode 100644 index 000000000..fc4042860 --- /dev/null +++ b/WebContent/demo/test-interface.json @@ -0,0 +1,27 @@ +{ + "body": { + "users": [ + { + "address": "@area @region", + "lastLoginIp": "@ip", + "bio": "@paragraph", + "email": "@email", + "profiles": "@url", + "sex": [ + "男", + "女" + ], + "birthday": "@date(yyyy-MM)", + "lastLogin": "@datetime", + "vip": "@boolean", + "avatar": "@image", + "id": "@natural", + "name": "@name" + } + ] + }, + "head": { + "timestamp": "@natural(1390000000000, 1400000000000)", + "version": "0.1.0" + } +} \ No newline at end of file diff --git "a/WebContent/demo/\345\257\274\345\207\272\347\232\204\346\216\245\345\217\243\346\226\207\346\241\243.doc" "b/WebContent/demo/\345\257\274\345\207\272\347\232\204\346\216\245\345\217\243\346\226\207\346\241\243.doc" new file mode 100644 index 000000000..9e89c81ee --- /dev/null +++ "b/WebContent/demo/\345\257\274\345\207\272\347\232\204\346\216\245\345\217\243\346\226\207\346\241\243.doc" @@ -0,0 +1,53 @@ + + + + + + + + +
+
+

1 首页模块

+
+

1.1 首页

+
+

1.1.1 用户列表

+

Description

+
+

Request Param List

+
NameIdentifierTypeRemark
复杂参数testparamobject
---参数2p2string
---参数1p1string
密码passwordstring
用户IDidstring
+

Response Param List

+
NameIdentifierTypeRemark
消息头headobject
---版本号versionstring@mock=0.1.0
---时间戳timestampnumber@mock="@natural(1390000000000, 1400000000000)"
信息体bodyobject
---用户列表users|1-10array<object>
------地址addressstring@mock=@area @region
------电子邮件emailstring@mock=@email
------姓名namestring@mock=@name
------最后登录IPlastLoginIpstring@mock=@ip
------最后登录时间lastLoginstring@mock=@datetime
------简介biostring@mock=@paragraph
------头像avatarstring@mock=@image
------用户IDidnumber@mock="@natural"
------生日birthdaystring@mock=@date(yyyy-MM)
------VIP否vipboolean@mock="@boolean"
------主页profilesstring@mock=@url
------性别sex|1string@mock=['男', '女']
+
+
+
+
+ +