Showing
1 changed file
with
27 additions
and
0 deletions
inferface-document/all-interface-public.md
0 → 100644
1 | +平台服务接口公共参数 | ||
2 | +====== | ||
3 | +###### 平台页面端在向平台服务发起请求时应该携带以下参数, | ||
4 | +###### 便于后台问题定位和操作回溯 | ||
5 | + | ||
6 | +--- | ||
7 | +页面传入参数(参数通过扩展HTTP头方式提供) | ||
8 | +------------------------- | ||
9 | +|属性名称|类型|例子|说明| | ||
10 | +|--------|----|----|----| | ||
11 | +|x-user-id|string|0|用户ID| | ||
12 | +|x-user-name|string|admin|用户名| | ||
13 | +|x-site-type|string|1|站点类型:1-运营平台 2-商家平台| | ||
14 | +|x-client-ip|string|192.168.0.1|客户端IP| | ||
15 | + | ||
16 | +--- | ||
17 | +服务调用传入参数示例: | ||
18 | +POST /xx/xx HTTP/1.1\r\n | ||
19 | +... http standard headers... | ||
20 | +x-user-id:0\r\n | ||
21 | +x-user-name:admin\r\n | ||
22 | +x-size-type:1\r\n | ||
23 | +x-client-ip:192.168.0.1\r\n | ||
24 | +\r\n | ||
25 | +...json body.. | ||
26 | + | ||
27 | + |
-
Please register or login to post a comment