rubbishclass-srv/service.rest

90 lines
3.0 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@url=http://localhost:8080
//@url=https://api.xintijiao.com
@token=31_uHgfsKEOrH5l3EUXM_nb_u_lTL2fRwPzxGbgvOlbM9PTGHxsH9hBzvnnP-SKOf59fb0SdUwrs-wcpTKfd_I99g
@refresh_token=31_T-96lys-lZtR4B9OtRMkFOqyX_zxJNwMH6vcKxenk7enK5jeDZ6Av-Ipj9aVWr1dzdsMaCACoxbmEFKmReHwTgtQNrOpY3TdiTkM5pEyvIQ
@openid=oYmRQxLw6UKdlQsZYIkRKbWlCijI
############################### 以下微信小程序 ########################################
@jscode={{$guid}}
GET {{url}}/app/code2session/{{jscode}} HTTP/1.1
### 视频历史下载
GET {{url}}/app/history/ozgDT5KzARnML4khh70BEypaLlf8 HTTP/1.1
### 文件上传
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&timestamp=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}}