-
Notifications
You must be signed in to change notification settings - Fork 3
/
request.http
72 lines (55 loc) · 2.24 KB
/
request.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
POST http://127.0.0.1:9900/api/auth/login HTTP/1.1
content-type: application/json
{
"username":"user1",
"password":"password1"
}
###
GET http://127.0.0.1:9900/api/post HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM0OTk1MzI0LCJleHAiOjE2MzUwODE3MjR9.gXdUlVdHBD16nltIom9DznLW114YGx3fhK3LauNDpL4
###
GET http://127.0.0.1:9900/api/post/3 HTTP/1.1
###
GET http://127.0.0.1:9900/api/post/3 HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM1MDA0MTE2LCJleHAiOjE2MzUwOTA1MTZ9.4vCITSb9gvu7-0E8zbeqoP8LqXFktCzb8F2Of4zvLf8
###
GET http://127.0.0.1:9900/api/pot/3 HTTP/1.1
###
GET http://127.0.0.1:9900/api/pot/3 HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM1MDA0MTE2LCJleHAiOjE2MzUwOTA1MTZ9.4vCITSb9gvu7-0E8zbeqoP8LqXFktCzb8F2Of4zvLf8
###
GET http://127.0.0.1:9900/api/get-posts-by-title/ms HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM1MDA0MTE2LCJleHAiOjE2MzUwOTA1MTZ9.4vCITSb9gvu7-0E8zbeqoP8LqXFktCzb8F2Of4zvLf8
###
POST http://127.0.0.1:9900/api/post HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM1MDA0MTE2LCJleHAiOjE2MzUwOTA1MTZ9.4vCITSb9gvu7-0E8zbeqoP8LqXFktCzb8F2Of4zvLf8
content-type: application/json
{
"category":"cat 2",
"title":"sample title",
"body":"sample body",
"author":"sample author"
}
###
PUT http://127.0.0.1:9900/api/post/7 HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM1MDA0MTE2LCJleHAiOjE2MzUwOTA1MTZ9.4vCITSb9gvu7-0E8zbeqoP8LqXFktCzb8F2Of4zvLf8
content-type: application/json
{
"id":"7",
"category":"cat 7",
"title":"sample title 7",
"body":"sample body 7",
"author":"sample author 7"
}
###
DELETE http://127.0.0.1:9900/api/post HTTP/1.1
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InVzZXIxIiwiaWF0IjoxNjM1MDA0MTE2LCJleHAiOjE2MzUwOTA1MTZ9.4vCITSb9gvu7-0E8zbeqoP8LqXFktCzb8F2Of4zvLf8
content-type: application/json
{
"id":"6",
"category":"cat 2",
"title":"sample title",
"body":"sample body",
"author":"sample author"
}
###