109 lines
3.3 KiB
ReStructuredText
109 lines
3.3 KiB
ReStructuredText
@url=http://localhost:8080/rubbish
|
||
|
||
//@url=https://api.xintijiao.com
|
||
|
||
@token=uHgfsKEOrH5l3EUXMI99g
|
||
@refresh_token=31_T-96lys-lZtR4B9OtRMkFOqyX_zxJNwMH6vcKxenk7enK5jeDZ6Av-Ipj9aVWr1dzdsMaCACoxbmEFKmReHwTgtQNrOpY3TdiTkM5pEyvIQ
|
||
@openid=oYmRQxLw6UKdlQsZYIkRKbWlCijI
|
||
|
||
###############################公共部分###############################################
|
||
|
||
POST {{url}}/community/create HTTP/1.1
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"name":"ddd小区"
|
||
}
|
||
|
||
### 通用/community
|
||
GET {{url}}/community/list HTTP/1.1
|
||
|
||
### 用户统计user
|
||
GET {{url}}/admin/user/stat HTTP/1.1
|
||
Authorization: Basic YWRtaW46YWRtaW4=
|
||
|
||
### 社区用户统计
|
||
GET {{url}}/admin/user/stat/11111 HTTP/1.1
|
||
Authorization: Basic YWRtaW46YWRtaW4=
|
||
|
||
############################### 以下微信小程序 ########################################
|
||
|
||
GET {{url}}/app/code2session/1232131231 HTTP/1.1
|
||
|
||
###
|
||
PUT {{url}}/app/user/info HTTP/1.1
|
||
token:{{token}}
|
||
|
||
### 文件上传
|
||
POST {{url}}/app/upload HTTP/1.1
|
||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
Content-Disposition: form-data; name="text"
|
||
|
||
title
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
Content-Disposition: form-data; name="file"; filename="readme.txt"
|
||
Content-Type: text/plain
|
||
|
||
dsfsdfdsfsdaf 这里就是文件内容了!
|
||
t={{$timestamp}}&a={{$guid}}
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW--
|
||
|
||
### 视频上传
|
||
POST {{url}}/app/uploadvideo HTTP/1.1
|
||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
Content-Disposition: form-data; name="openid"
|
||
|
||
ddddddd
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
Content-Disposition: form-data; name="age"
|
||
|
||
12
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW
|
||
Content-Disposition: form-data; name="file"; filename="readme12.txt"
|
||
Content-Type: text/plain
|
||
|
||
这里就是文件内容了!
|
||
t={{$timestamp}}&a={{$guid}}
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW--
|
||
|
||
############################ 以下网页基础认证 ####################################
|
||
|
||
### admin http基本认证测试,以下二种方式均可
|
||
GET {{url}}/admin/index HTTP/1.1
|
||
Authorization: Basic admin admin
|
||
//Authorization: Basic YWRtaW46YWRtaW4= //BASE64处理后方式
|
||
|
||
######################## 以下微信服务号及订阅号 ###############################
|
||
|
||
### wechat 验证
|
||
GET {{url}}/wechat/index?signature=cc31b8d03faab03a06d7d9fba9d2fb011650680e&echostr=2755367349555518703×tamp=1583570152&nonce=1947789919
|
||
|
||
### wechat消息回调
|
||
POST {{url}}/wechat/index HTTP/1.1
|
||
Content-Type: application/x-www-form-urlencoded
|
||
|
||
#### wechat获取用户accesstoken
|
||
GET {{url}}/wechat/access_token/081sBRac1YXCqz0H7Abc1K20bc1sBRaM HTTP/1.1
|
||
|
||
### wechat获取用户信息
|
||
GET {{url}}/wechat/userinfo/{{token}}/{{openid}} HTTP/1.1
|
||
|
||
### wechat jssdk配置获取
|
||
GET {{url}}/wechat/jssdk?url=http%3A%2F%2F127.0.0.1%3A5500%2Fstatic%2Fsdk.html HTTP/1.1
|
||
|
||
######################### 以下开放平台 ###################################
|
||
|
||
### open 获取用户token
|
||
GET {{url}}/open/access_token/001HbLN007pXLJ1B4NO002nUN00HbLN6 HTTP/1.1
|
||
|
||
### open 刷新token
|
||
GET {{url}}/open/refresh_token/{{refresh_token}} HTTP/1.1
|
||
|
||
### open 获取用户信息
|
||
GET {{url}}/open/userinfo?token=31_mhulwBPAd-H0f8Flj6DKUZ1mfiKxlydpC0rt5bq43mPgHCaHCiZbux9C_170hu3JswLHQMxZp0xMNTXA0znpluZV3R4q_yhYf7I5BnAskSs&openid=o9DpN1RQlkdgEXM2wWGvYNo4AZmA HTTP/1.1
|
||
token: {{token}}
|