-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAPI_DOCUMENTATION.json
More file actions
176 lines (176 loc) · 3.5 KB
/
Copy pathAPI_DOCUMENTATION.json
File metadata and controls
176 lines (176 loc) · 3.5 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"variables": [],
"info": {
"name": "DRF - CRUD POSTMAN",
"_postman_id": "78502376-b319-ebfb-b86c-8264e269690e",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "Logout",
"request": {
"url": "http://localhost:8000/api/logout/",
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Token dcd76a7635d215607e8cf041092998f12b6d8baa61e4d86b67a985fd85507358",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Reset Password",
"request": {
"url": "http://localhost:8000/api/password_reset/",
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "email",
"value": "admin@bot.com",
"description": "",
"type": "text"
}
]
},
"description": ""
},
"response": []
},
{
"name": "Reset Password Confirm",
"request": {
"url": "http://localhost:8000/api/password_reset/confirm/",
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "token",
"value": "9d80554d9f9f68c8c7befa14ad6bb9a97beae4131621425bb3",
"description": "",
"type": "text"
},
{
"key": "password",
"value": "Password@123",
"description": "",
"type": "text"
}
]
},
"description": ""
},
"response": []
},
{
"name": "Change Password",
"request": {
"url": "http://localhost:8000/api/change-password/",
"method": "PUT",
"header": [
{
"key": "Authorization",
"value": "Token 178321309bdbfea92cd70272bac5344409ec9d569966833122d4889777efbb5d",
"description": ""
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "old_password",
"value": "Password@123",
"description": "",
"type": "text"
},
{
"key": "new_password",
"value": "Password@123",
"description": "",
"type": "text"
}
]
},
"description": ""
},
"response": []
},
{
"name": "Logout All",
"request": {
"url": "http://localhost:8000/api/logout/",
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Token dcd76a7635d215607e8cf041092998f12b6d8baa61e4d86b67a985fd85507358",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "User",
"request": {
"url": "http://localhost:8000/api/user/",
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Token 9274b940000fbd30702e1a17bda7b6b0b6015b278c57522f5d10436b98a21e04",
"description": ""
}
],
"body": {},
"description": ""
},
"response": []
},
{
"name": "Login",
"request": {
"url": "http://localhost:8000/api/login/",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/x-www-form-urlencoded",
"description": ""
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "username",
"value": "admin",
"description": "",
"type": "text"
},
{
"key": "password",
"value": "Password@123",
"description": "",
"type": "text"
}
]
},
"description": ""
},
"response": []
}
]
}