-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.rest
55 lines (36 loc) · 1.4 KB
/
test.rest
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
POST http://127.0.0.1:8000/accounts/signup
Content-Type: application/json
{ "username": "admin", "password": "admin" }
###
POST http://127.0.0.1:8000/accounts/login
Content-Type: application/json
{ "username": "admin", "password": "admin" }
###
GET http://127.0.0.1:8000/posts/api/7cee17c1e493d00bb72bbc14ef1dab8512a0634e
Content-Type: application/json
Authorization: Token 7cee17c1e493d00bb72bbc14ef1dab8512a0634e
# {"title":"u", "body":"hjdskl", "image": "None"}
###
GET http://127.0.0.1:8000/test
Content-Type: application/json
Authorization: Token 7cee17c1e493d00bb72bbc14ef1dab8512a0634e
###
GET http://127.0.0.1:8000/dashboard/actions/lkijuhg49efad8e0f
Content-Type: application/json
Authorization: Token 7cee17c1e493d00bb72bbc14ef1dab8512a0634e
####
get http://127.0.0.1:8000/comment/7070aa3bfb7a4f6f8266fa44180d4aaf/Ride on f3ec538959
Content-Type: application/json
{"name": "Yusuf", "email": "mail@gmail.com", "comment": "pp "}
###
GET http://127.0.0.1:8000/v2/all-posts
Content-Type: application/json
Authorization: Token a954b21e51c809b72b5e68d5a12717ef4e2c5d3a
###
GET http://127.0.0.1:8000/v2/post/N365d9e3a1b
Content-Type: application/json
Authorization: Token a954b21e51c809b72b5e68d5a12717ef4e2c5d3a
###
GET http://127.0.0.1:8000/v2/main
Content-Type: application/json
Authorization: Token a954b21e51c809b72b5e68d5a12717ef4e2c5d3a