-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
43 lines (33 loc) · 1.48 KB
/
test.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
### register
POST http://localhost:5000/user/register HTTP/1.1
content-type: application/x-www-form-urlencoded
username=Ryan
&password=password
### login
POST http://localhost:5000/user/login HTTP/1.1
content-type: application/x-www-form-urlencoded
&password=password
### login json
POST http://localhost:5000/user/login HTTP/1.1
content-type: application/json
{
"password": "[email protected]"
}
### all users
GET http://localhost:5000/user?page=1&pageSize=10 HTTP/1.1
content-type: application/x-www-form-urlencoded
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjdhNWJhZTIxLTlhMDItNDMyNy1hMDMzLWJjNzhlZmQ0MjlmYiIsImVtYWlsIjoicnlhbkByeWFuYy50b3AiLCJ1c2VybmFtZSI6IlJ5YW4iLCJyb2xlcyI6ImFkbWluIiwiaWF0IjoxNTYzNDYwODQyLCJleHAiOjE1NjM1MDQwNDJ9._CwdTsXXtEI7V2pHM91o8FBLFPJU7ZqOWWtvBAcd56Y
### upload file
POST http://localhost:5000/upload
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjExNjQ1YmVmLTI4N2MtNDIyMS04YmE0LWQwZDMzYjY0ODhhMSIsInVzZXJuYW1lIjoidXNlcm5hbWUiLCJyb2xlcyI6IiIsImlhdCI6MTU2MDkzNzAwMiwiZXhwIjoxNTYwOTgwMjAyfQ.GDsbWyjj0BzAaJTSQn5Xk-DG5Tj4jYQEgW4W-hyGkgY
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="text"
title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="1.png"
Content-Type: image/png
< ./1.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--