Showing
3 changed files
with
188 additions
and
0 deletions
订单/购物车.md
0 → 100644
资源位/资源位.md
0 → 100644
1 | +## 客户端初始化配置接口 | ||
2 | + | ||
3 | +### 说明 | ||
4 | +客户端初始化配置接口 | ||
5 | +### 请求参数 | ||
6 | +| Param Name | Param Value | Desc | | ||
7 | +| ---------- | ----------- | ---- | | ||
8 | +| method | app.resources.config.clientInitConfig | | | ||
9 | +| client_type| h5 | | | ||
10 | + | ||
11 | +### 响应 | ||
12 | +用户响应JSON格式如下所示: | ||
13 | +```json | ||
14 | +{ | ||
15 | + "code":200, | ||
16 | + "message":"Config Success", | ||
17 | + "md5":"1231231231231", | ||
18 | + "data":{ | ||
19 | + "config":{ | ||
20 | + "format":"webp", | ||
21 | + "https":"0", | ||
22 | + "yoho_coin_help":"20111130-152530", | ||
23 | + "clearcache":{ | ||
24 | + "image":1, | ||
25 | + "data":1, | ||
26 | + "init":1, | ||
27 | + "code":159872617889 | ||
28 | + } | ||
29 | + } | ||
30 | + } | ||
31 | +} | ||
32 | +``` | ||
33 | +#### 参数描述 | ||
34 | +@See [APP文档](http://git.dev.yoho.cn/mobile/yohoapi/blob/master/userconfig.md "客户端初始化配置") | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | +## 获取资源位接口 | ||
40 | + | ||
41 | +### 说明 | ||
42 | +根据内容码,获取单个内容个体 | ||
43 | +### 请求地址 | ||
44 | +/operations/api/v5/resource/get | ||
45 | +### 请求参数 | ||
46 | +| Param Name | Param Value | Desc| | ||
47 | +| :-------- | --------------:|----:| | ||
48 | +| content_code | 406238d7731f66a15e45b8c32b85b43a | 内容码 | | ||
49 | + | ||
50 | +### 响应 | ||
51 | +用户响应JSON格式如下所示: | ||
52 | +```json | ||
53 | +{ | ||
54 | + "code":200, | ||
55 | + "data":[], | ||
56 | + "md5":"d751713988987e9331980363e24189ce", | ||
57 | + "message":"资源信息" | ||
58 | +} | ||
59 | +``` | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | +## 首页资源位接口 | ||
64 | + | ||
65 | +### 说明 | ||
66 | +根据内容码,获取首页内容 | ||
67 | +### 请求地址 | ||
68 | +/operations/api/v5/resource/home | ||
69 | +### 请求参数 | ||
70 | +| Param Name | Param Value | Desc| | ||
71 | +| :-------- | --------------:|----:| | ||
72 | +| content_code | 406238d7731f66a15e45b8c32b85b43a | 内容码 | | ||
73 | +| gender | 1,3 | 性别 | | ||
74 | +| page | 1 | 页数 | | ||
75 | +| limit | 5 | 页容量 | | ||
76 | + | ||
77 | +### 响应 | ||
78 | +用户响应JSON格式如下所示: | ||
79 | +```json | ||
80 | +{ | ||
81 | + "code":200, | ||
82 | + "data":{ | ||
83 | + "content_code":"406238d7731f66a15e45b8c32b85b43a", | ||
84 | + "total":0, | ||
85 | + "page":1, | ||
86 | + "total_page":0, | ||
87 | + list:[] | ||
88 | + }, | ||
89 | + "md5":"d751713988987e9331980363e24189ce", | ||
90 | + "message":"资源信息" | ||
91 | +} | ||
92 | +``` | ||
93 | + | ||
94 | +## 获取热门标签(TOP100) | ||
95 | + | ||
96 | +### 说明 | ||
97 | +根据客户端类型,加载热门标签 | ||
98 | + | ||
99 | +### 请求参数 | ||
100 | +| Param Name | Param Value | Desc | | ||
101 | +| :---------- | -----------:|-----------:| | ||
102 | +| method | app.resources.getHotRankTag | | | ||
103 | +| client_type | web | 客户端类型 | | ||
104 | + | ||
105 | +### 响应 | ||
106 | +```json | ||
107 | +{ | ||
108 | + "alg": "SALT_MD5", | ||
109 | + "code": 200, | ||
110 | + "data": [ | ||
111 | + { | ||
112 | + "category_id": "", | ||
113 | + "id": 1, | ||
114 | + "tag_name": "TOP100" | ||
115 | + }, | ||
116 | + { | ||
117 | + "category_id": "211", | ||
118 | + "id": 39, | ||
119 | + "tag_name": "数码配件(创意家具)" | ||
120 | + } | ||
121 | + ], | ||
122 | + "md5": "07de70f372344d676b0bae188db345aa", | ||
123 | + "message": "热门标签列表" | ||
124 | +} | ||
125 | +``` | ||
126 | + | ||
127 | +## 根据节点和运行环境选择静态内容 | ||
128 | + | ||
129 | +### 请求参数 | ||
130 | +| Param Name | Param Type | Param Value | Desc | | ||
131 | +| ---------- | ----------- | ----------- | ----- | | ||
132 | +| method | String | app.resources.getHtmlContentByNodeContent | | | ||
133 | +| node |String| 20110605-160023 |节点编号 | | ||
134 | +| mode |String| release | 运行环境(可选,默认release)| | ||
135 | + | ||
136 | +### 响应 | ||
137 | +```json | ||
138 | +{ | ||
139 | + "code": 200, | ||
140 | + "data": { | ||
141 | + "inuseContent": "<p>\r\n\t<span><a href=\"http://vans.yohobuy.com/\">Vans</a> | <a href=\"http://lyrique.yohobuy.com/\">LYRIQUE</a> | <a href=\"http://lal.yohobuy.com/\">Life after Life</a> | <a href=\"http://www.yohobuy.com/search?msort=1&misort=11&sort=114\">MORE></a></span></p>" | ||
142 | + }, | ||
143 | + "message": "html content" | ||
144 | +} | ||
145 | +or | ||
146 | +{ | ||
147 | + "code": 200, | ||
148 | + "data": { | ||
149 | + "editContent": "<p>\r\n\t<span><a href=\"http://vans.yohobuy.com/\">Vans</a> | <a href=\"http://lyrique.yohobuy.com/\">LYRIQUE</a> | <a href=\"http://lal.yohobuy.com/\">Life after Life</a> | <a href=\"http://www.yohobuy.com/search?msort=1&misort=11&sort=114\">MORE></a></span></p>" | ||
150 | + }, | ||
151 | + "message": "html content" | ||
152 | +} | ||
153 | +``` | ||
154 | + | ||
155 | +## 获取专区信息 | ||
156 | + | ||
157 | +### 说明 | ||
158 | +获取专区信息 | ||
159 | + | ||
160 | +### 请求参数 | ||
161 | +| Param Name | Param Value | Desc | | ||
162 | +| ---------- | ----------- | ----- | | ||
163 | +| method | app.resources.getOneSpecial | | | ||
164 | +| special_id | 7 | 专区id | | ||
165 | + | ||
166 | +### 响应 | ||
167 | +```json | ||
168 | +{ | ||
169 | + "code": 200, | ||
170 | + "data": { | ||
171 | + "id": 7, | ||
172 | + "special_name": "军事风格", | ||
173 | + "cover_img": "/2014/01/27/12/01d66be5333471b962cfebf8b00379d5f3.jpg", | ||
174 | + "create_time": 1390738775, | ||
175 | + "status": 2 | ||
176 | + }, | ||
177 | + "message": "专区信息" | ||
178 | +} | ||
179 | +``` | ||
180 | + | ||
181 | +#### 参数说明 | ||
182 | +| Param Name | Param Value | Desc | | ||
183 | +| ---------- | ----------- | ----- | | ||
184 | +| id | 7 | 专区id | | ||
185 | +| special_name| 军事风格 | 专区名称 | | ||
186 | +| cover_img | /2014/01/27/12/01d66be5333471b962cfebf8b00379d5f3.jpg | | | ||
187 | +| create_time | 1390738775 | 创建时间 | | ||
188 | +| status | 2 | 1:显示,2:隐藏 | |
-
Please register or login to post a comment