-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.MD.html
444 lines (437 loc) · 40.7 KB
/
README.MD.html
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>README.MD</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
<body class="stackedit">
<div class="stackedit__left">
<div class="stackedit__toc">
<ul>
<li><a href="#welcome-to-arora-server">Welcome to ARORA Server</a></li>
<li><a href="#package-dependency">Package Dependency</a></li>
<li><a href="#how-to-set-up-the-server">How to Set Up the Server</a></li>
<li><a href="#models">Models</a></li>
<li><a href="#endpoints-url">Endpoints URL</a></li>
<li><a href="#foreign-key-relationship-map">Foreign Key Relationship Map</a></li>
<li><a href="#token">Token</a>
<ul>
<li><a href="#get-a-token">Get a Token</a></li>
<li><a href="#verify-a-token">Verify a Token</a></li>
<li><a href="#refresh-a-token">Refresh a Token</a></li>
</ul>
</li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</div>
<div class="stackedit__right">
<div class="stackedit__html">
<h1 id="welcome-to-arora-server">Welcome to ARORA Server</h1>
<p>This is a server project based on <a href="%5Bhttps://www.django-rest-framework.org/%5D(https://www.django-rest-framework.org/)"><strong>Django REST Framework</strong></a>.</p>
<h1 id="package-dependency">Package Dependency</h1>
<ol>
<li>Django 2.2.1</li>
<li>djangorestframework 3.9.2</li>
<li>djangorestframework-jwt 1.11.0</li>
<li>rest-condtion 1.0.3</li>
</ol>
<h1 id="how-to-set-up-the-server">How to Set Up the Server</h1>
<ol>
<li>
<p>Get the project from Github</p>
</li>
<li>
<p>Go to /root_dir/arora/env, then run command: source ./active to active virtual environment.<br>
<img src="https://lh3.googleusercontent.com/Bw1KtpaUX7TlGxucETfjQyYWtq8SMZjMl9zjzU5nReRumaEsPttJYrJ5pgBs7E2u10l7bQFpPhk" alt="enable virtual environment"></p>
</li>
<li>
<p>Back to /root_dir</p>
</li>
<li>
<p>Create migration files for building database, sudo python3 <a href="http://manage.py">manage.py</a> makemigrations<br>
<img src="https://lh3.googleusercontent.com/gsOTJvpbbQMOaBIJChNb2ylIkk0XRjpVJ-kOBtG7w0tKqgSRF9BqvwC581JiiQkO5hfHIt6Ai4U" alt="make migrations"></p>
</li>
<li>
<p>Create a brand new database, sudo python3 <a href="http://manage.py">manage.py</a> migrate.<br>
<img src="https://lh3.googleusercontent.com/Gx63J9pzRTlrl0fJB-iHeosq7KUsWXvDLT_8OR6smoF1gwP2CUhfD_xT1yogC7R70WFCYlhji5k" alt="create database"></p>
</li>
<li>
<p>Create a super user for the first step to access database, sudo python3 <a href="http://manage.py">manage.py</a> createsuperuser.<br>
<img src="https://lh3.googleusercontent.com/zuB5mo0J4QtEMD8dzlmJCjoE1dlcDQJcaLc-YGUGMN_ooy-9uzhImRx13Wkem1X3kBt9M4PSkuE" alt="create super user"></p>
</li>
<li>
<p>Run server, sudo python3 runserver, or you can assign customized IP address and port here, sudo python3 runserver 127.0.0.1 8000.<br>
<img src="https://lh3.googleusercontent.com/zK1IcvohenI-2xqV-hT8KcpJWpsRRPMNo49HwLtW_hw7-oUOdPsn2SZThIYoinuQvblNX4pCsWY" alt="run server"></p>
</li>
<li>
<p>Open browser, go to 127.0.0.1:8000/admin to access admin site.<br>
<img src="https://lh3.googleusercontent.com/Rq6EcrMBmbcAXqv8IdKzRWlOGTf33hNk4g5x-2vPgBaJ5WOFT26WdBZnVeHGd27TzCJ5gnbgqxc" alt="log in admin site"></p>
</li>
<li>
<p>Log in with your super user account.</p>
</li>
<li>
<p>Now, you can manage database by your super user account. And we done. Have fun!<br>
<img src="https://lh3.googleusercontent.com/3n6j2ayXfIkAWPMONnrxjnPQCOOTMVdYq5PsAaroHup7dqrGkHW5rhS62kJB2F0lFxhST7OremQ" alt="admin site"></p>
</li>
</ol>
<p><strong>Note:</strong></p>
<ol>
<li>Using admin site is a optional way to manage your database.</li>
<li>If you meet any problem when you do the above process, please make sure nothing wrong with your migration files. <a href="https://github.com/LooDaHu/ARORA_General_Introduction/blob/master/README.md">Learn more.</a></li>
</ol>
<h1 id="models">Models</h1>
<ol>
<li>
<p>UserInfo<br>
|–> user_info_id <em>(integer)</em> <br>
|–> user_id <em>(integer)</em> <br>
|–> user_name_of_strength* <em>(string)</em><br>
|–> user_created_at <em>(datetime)</em><br>
|–> user_current_mood* <em>(integer)</em> <br>
|–> user_current_mood_updated* <em>(datetime)</em><br>
|–> user_current_location_lat* <em>(decimal)</em><br>
|–> user_current_location_long* <em>(decimal)</em><br>
|–> user_current_location_updated* <em>(datetime)</em><br>
|–> user_current_butterfly* <em>(integer)</em> <br>
|–> user_pollen* <em>(integer)</em> <br>
|–> user_points* <em>(integer)</em> <br>
<strong>|–> username</strong> (Django bulit-in field) <em>(string)</em><br>
<strong>|–> email</strong> (Django bulit-in field) <em>(string)</em><br>
<strong>|–> password</strong> (Django bulit-in field) <em>(string)</em></p>
</li>
<li>
<p>ButterflyType<br>
|–> butterfly_type_id <em>(integer)</em> <br>
|–> butterfly_type_description* <em>(integer)</em> <br>
|–> butterfly_type_image* <em>(string)</em></p>
</li>
<li>
<p>Butterfly<br>
|–> butterfly_id <em>(integer)</em><br>
|–> butterfly_type_id* <em>(integer)</em><br>
|–> butterfly_create_at <em>(datetime)</em></p>
</li>
<li>
<p>UserButterfly<br>
|–> user_butterfly_id <em>(integer)</em><br>
|–> butterfly_id* <em>(integer)</em><br>
|–> time_caught <em>(datetime)</em> (Record the date time when it is created)<br>
|–> user_id* <em>(integer)</em></p>
</li>
<li>
<p>ButterflyLike<br>
|–> butteefly_like_id <em>(integer)</em><br>
|–> butterfly_id* <em>(integer)</em><br>
|–> user_id* <em>(integer)</em><br>
|–> like_created_at <em>(datetime)</em></p>
</li>
<li>
<p>ButterflyComment<br>
|–> butterfly_comment_id <em>(integer)</em><br>
|–> butterfly_id* <em>(integer)</em><br>
|–> user_id* <em>(integer)</em><br>
|–> comment_created_at <em>(datetime)</em><br>
|–> comment_text* <em>(string)</em></p>
</li>
<li>
<p>BaselineReport<br>
|–> baseline_report_id <em>(integer)</em><br>
|–> user_id* <em>(integer)</em><br>
|–> baseline_report_created_at <em>(datetime)</em><br>
|–> baseline_report_results* <em>(string)</em></p>
</li>
<li>
<p>LocationReport<br>
|–> location_report_id <em>(integer)</em><br>
|–> location_report_lat* <em>(decimal)</em><br>
|–> location_report_long* <em>(decimal)</em> location_report_create_at<br>
|–> location_report_create_at <em>(datetime)</em><br>
|–> user_id* <em>(integer)</em></p>
</li>
<li>
<p>MoodType<br>
|–> mood_type_id <em>(integer)</em><br>
|–> mood_type_description* <em>(string)</em></p>
</li>
<li>
<p>MoodReport<br>
|–> mood_report_id <em>(integer)</em><br>
|–> mood_report_created_at<br>
|–> user_id* <em>(integer)</em><br>
|–> mood_type* <em>(integer)</em><br>
|–> user_text* <em>(string)</em></p>
</li>
<li>
<p>Phrase<br>
|–> phrase_id <em>(integer)</em><br>
|–> phrase_english_text* <em>(string)</em><br>
|–> phrase_indigenous_text* <em>(string)</em></p>
</li>
<li>
<p>QuestType<br>
|–> quest_type_id <em>(integer)</em><br>
|–> quest_type_description* <em>(string)</em></p>
</li>
<li>
<p>QuestStatus<br>
|–> quest_status_id <em>(integer)</em><br>
|–> quest_status_description* <em>(string)</em></p>
</li>
<li>
<p>Quest<br>
|–> quest_id <em>(integer)</em><br>
|–> quest_type_id* <em>(integer)</em><br>
|–> quest_status_id* <em>(integer)</em></p>
</li>
<li>
<p>QuestReport<br>
|–> quest_report_id <em>(integer)</em><br>
|–> quest_id* <em>(integer)</em><br>
|–> user_id* <em>(integer)</em><br>
|–> quest_started_at <em>(datetime)</em><br>
|–> quest_ended_at <em>(datetime)</em> (Record the date time when it is updated)</p>
</li>
<li>
<p>SystemReport<br>
|–> system_report_id <em>(integer)</em><br>
|–> user_id* <em>(integer)</em><br>
|–> power_level* <em>(integer)</em><br>
|–> request_latnecy* <em>(string)</em><br>
|–> system_report_created_at <em>(datetime)</em></p>
</li>
<li>
<p>UserInteractionType<br>
|–> user_interaction_type_id <em>(integer)</em><br>
|–> user_interaction_description* <em>(string)</em></p>
</li>
<li>
<p>UserInteraction<br>
|–> user_interaction_id <em>(integer)</em><br>
|–> user_interaction_created_at <em>(datetime)</em><br>
|–> initator_user_id* <em>(integer)</em><br>
|–> receiver_user_id* <em>(integer)</em><br>
|–> user_interaction_type_id* <em>(integer)</em><br>
|–> user_interaction_content* <em>(string)</em></p>
</li>
</ol>
<p><strong>Note:</strong></p>
<ol>
<li>
<p>This is a liitle special for creating a new user, due to use default django user model:</p>
<blockquote>
<p>Method: POST<br>
DATA in JSON: { “username”: “< user_name >”, “password”: “< password >”, “email”: “< email >” }</p>
</blockquote>
</li>
<li>
<p>The server returns all fields in the models back when it gets a <strong>GET</strong> request.</p>
</li>
<li>
<p>The fields in the models wtih <strong>star</strong> notation are entirely requried at <strong>POST/PUT</strong> request.</p>
</li>
<li>
<p>The fields in the models wtih <strong>star</strong> notation are partially requried at <strong>PATCH</strong> request.</p>
</li>
<li>
<p>There are two situation for non-requried field( the fields without <strong>star</strong> notation):<br>
(1) The field is a prime key, such as, user_info_id, quest_id, and mood_report_id.<br>
(2) The field is a date time field which is created or updated, such as, time_caught, location_report_create_at, and quest_ended_at.</p>
</li>
<li>
<p>The source code reserves all the right for the final explanation.</p>
</li>
</ol>
<h1 id="endpoints-url">Endpoints URL</h1>
<p><strong>General URL Principle:</strong><br>
POST: < DOMAIN_NAME or IP_ADDRESS >/< RESOURCE_NAME ><br>
e.g: <a href="http://127.0.0.1:8000/userinfo">http://127.0.0.1:8000/userinfo</a></p>
<p>GET: < DOMAIN_NAME or IP_ADDRESS >/< RESOURCE_NAME >/< RETRIEVED_ITEM_ID ><br>
e.g: <a href="http://127.0.0.1:8000/userinfo/1">http://127.0.0.1:8000/userinfo/1</a></p>
<p>GET(All items): < DOMAIN_NAME or IP_ADDRESS >/< RESOURCE_NAME s>/< RETRIEVED_ITEM_ID ><br>
e.g: <a href="http://127.0.0.1:8000/quests">http://127.0.0.1:8000/quests</a> <a href="http://127.0.0.1:8000/phrases">http://127.0.0.1:8000/phrases</a></p>
<p>PUT: < DOMAIN_NAME or IP_ADDRESS >/< RESOURCE_NAME >/< UPDATED_ITEM_ID ><br>
e.g: <a href="http://127.0.0.1:8000/quest/1">http://127.0.0.1:8000/quest/1</a></p>
<p>PATCH: < DOMAIN_NAME or IP_ADDRESS >/< RESOURCE_NANE >/< UPDATED_ITEM_ID ><br>
e.g: <a href="http://127.0.0.1:8000/userinteraction/1">http://127.0.0.1:8000/userinteraction/1</a></p>
<p>DELETE: < DOMAIN_NAME or IP_ADDRESS >/< RESOURCE_NAME >/< DELETED_ITEM_ID ><br>
e.g: <a href="http://127.0.0.1:8000/userbutterfly/1">http://127.0.0.1:8000/userbutterfly/1</a></p>
<table>
<thead>
<tr>
<th>Model Name</th>
<th>Resource Name</th>
<th>Accept Method</th>
</tr>
</thead>
<tbody>
<tr>
<td>UserInfo</td>
<td>userinfo</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>UserInfo</td>
<td>nearbyusers</td>
<td>GET</td>
</tr>
<tr>
<td>ButterflyType</td>
<td>butterflytype</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>Butterfly</td>
<td>butterfly</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>UserButterfly</td>
<td>userbutterfly</td>
<td>POST; GET; PUT; PATCH; DELETE</td>
</tr>
<tr>
<td>ButterflyLike</td>
<td>butterflylike</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>ButterflyComment</td>
<td>butterflycomment</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>BaselineReport</td>
<td>baselinereport</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>LocationReport</td>
<td>locationreport</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>MoodType</td>
<td>moodtype</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>MoodReport</td>
<td>moodreport</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>Phrase</td>
<td>phrase</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>Quest</td>
<td>quest</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>QuestType</td>
<td>questtype</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>QuestStatus</td>
<td>queststatus</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>QuestReport</td>
<td>questreport</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>SystemReport</td>
<td>systemreport</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>UserInteractionType</td>
<td>userinteractiontype</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
<tr>
<td>UserInteraction</td>
<td>userinteraction</td>
<td>POST; GET; PUT; PATCH</td>
</tr>
</tbody>
</table><p>Here I recommend you use <a href="https://www.getpostman.com/">POSTMAN</a>, a API development environemnt, to test the endpoints and know how to access those endpoints more directly. And I have a collection contains all useage of the endpoints, which could let us have a easier life.<br>
Sharing Link: <a href="https://www.getpostman.com/collections/921a12a8fa5a925e0c28">https://www.getpostman.com/collections/921a12a8fa5a925e0c28</a></p>
<p>A Example of How to Use:</p>
<ol>
<li>
<p>Afer you have installed and opened POSTMAN. Click <strong>Import</strong> button. Let’s start importing the collection.<br>
<img src="https://lh3.googleusercontent.com/Gci7dTi8HgkLNpWV2KqtIAVc-j_R6NAik1XxExxPPoBwzOPNPkY8U74GGrpFvhfN1_Qbzz5y5oo" alt="Start Import"></p>
</li>
<li>
<p>Choose <strong>Import From Link</strong>, then Copy the <strong>Sharing Link</strong> to it.<br>
<img src="https://lh3.googleusercontent.com/JlzR-r-MiwopjfVo76Dh7dJ0aWlp3Ot5TjHDx9I4FzFNhY4i1B12fQ039QFkXhqsRglbvMD42Z4" alt="enter the link"></p>
</li>
<li>
<p>After you sucessfully import the collection, you can see the pop-up at the downside.<br>
<img src="https://lh3.googleusercontent.com/64N10xjIrToHyojpIgPxPUMGksGjE2x3-97-egofgdoXcidgyNSgfWSqqOr-4R4Pk9oXCpP0KLQ" alt="enter image description here"></p>
</li>
<li>
<p>Let’s try to create a user. Of cource, please make sure the server is running properly. And the set-up of the request should be correct aslo.<br>
<img src="https://lh3.googleusercontent.com/mNlVFji4zcPImau9Qb330wUWH4wjlfqdNZ5w0BEhkpI7hQscckLv0bfllXt7rMqn2uRuwRaP6js" alt="correct set-up 1"><br>
<img src="https://lh3.googleusercontent.com/8NY5rhCEo7lDZHRAjAMBtk7Nmj-Mxn1hxVExeZxpR27-8Hffph5smutQ92uZYsSoO0dd2ftrvnM" alt="correct set-up 2"></p>
</li>
<li>
<p>After every thing is ok, Click the <strong>Send</strong> button. And we get a response shows the user_id of our new user back.<br>
<img src="https://lh3.googleusercontent.com/ZQteAq437kU8-0D2uc4Ly5_K5mAXoB6XqzuXNcEZ9hjKXb8jXDEhOm7g95zwrnc9K378t14AEts" alt="enter image description here"></p>
</li>
</ol>
<h1 id="foreign-key-relationship-map">Foreign Key Relationship Map</h1>
<div class="mermaid"><svg xmlns="http://www.w3.org/2000/svg" id="mermaid-svg-0N9gX64iCDc0ZZ6q" width="100%" style="max-width: 863.6859436035156px;" viewBox="0 0 863.6859436035156 1062.605079650879"><g transform="translate(-12, -12)"><g class="output"><g class="clusters"></g><g class="edgePaths"><g class="edgePath" style="opacity: 1;"><path class="path" d="M454.2484436035156,504.5894546508789L605.7093811035156,504.5894546508789L737.6937561035156,544.5661290384418" marker-end="url(#arrowhead378)" style="fill:none"></path><defs><marker id="arrowhead378" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M443.0846645506962,532.317080398151L605.7093811035156,688.6050796508789L729.3421936035156,688.6050796508789" marker-end="url(#arrowhead379)" style="fill:none"></path><defs><marker id="arrowhead379" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M436.81991213463976,537.6208556196068L605.7093811035156,784.6050796508789L728.4906311035156,784.6050796508789" marker-end="url(#arrowhead380)" style="fill:none"></path><defs><marker id="arrowhead380" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M432.3910266844366,540.2479700915222L605.7093811035156,880.6050796508789L733.2718811035156,880.6050796508789" marker-end="url(#arrowhead381)" style="fill:none"></path><defs><marker id="arrowhead381" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M442.9664095394645,476.7393021186901L605.7093811035156,319L726.1468811035156,353.9130065074518" marker-end="url(#arrowhead382)" style="fill:none"></path><defs><marker id="arrowhead382" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M429.2865838830685,467.51339235930385L605.7093811035156,33L735.0765686035156,48.948785594639865" marker-end="url(#arrowhead383)" style="fill:none"></path><defs><marker id="arrowhead383" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M432.33084879688056,468.9003590156478L605.7093811035156,127L716.8578186035156,141.89426298157454" marker-end="url(#arrowhead384)" style="fill:none"></path><defs><marker id="arrowhead384" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M436.73366270177013,471.49924070465806L605.7093811035156,223L737.3031311035156,240.63400335008376" marker-end="url(#arrowhead385)" style="fill:none"></path><defs><marker id="arrowhead385" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M460.2080049482488,120.33729419385433L605.7093811035156,81L735.0765686035156,63.664363484087104" marker-end="url(#arrowhead386)" style="fill:none"></path><defs><marker id="arrowhead386" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M461.3361157925875,143.4025576082915L605.7093811035156,177L716.8578186035156,162.10573701842546" marker-end="url(#arrowhead387)" style="fill:none"></path><defs><marker id="arrowhead387" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M447.88245059624523,156.8562228046338L605.7093811035156,273L737.3031311035156,255.36599664991624" marker-end="url(#arrowhead388)" style="fill:none"></path><defs><marker id="arrowhead388" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M164.79530944824222,132.4339828491211L249.10000610351562,131.9339828491211L357.16094360351553,132.4339828491211" marker-end="url(#arrowhead389)" style="fill:none"></path><defs><marker id="arrowhead389" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M445.6000061035156,376.11098373203276L605.7093811035156,391.5738296508789L726.1468811035156,379.63599202525074" marker-end="url(#arrowhead390)" style="fill:none"></path><defs><marker id="arrowhead390" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M145.3039093017578,277.0816421508789L249.10000610351562,277.0816421508789L382.8656311035156,354.8463202035827" marker-end="url(#arrowhead391)" style="fill:none"></path><defs><marker id="arrowhead391" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M139.6632843017578,373.0816421508789L249.10000610351562,373.0816421508789L382.8656311035156,373.0816421508789" marker-end="url(#arrowhead392)" style="fill:none"></path><defs><marker id="arrowhead392" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M429.988684864375,541.3726426925718L605.7093811035156,951.6050796508789L727.8187561035156,981.7131198518839" marker-end="url(#arrowhead393)" style="fill:none"></path><defs><marker id="arrowhead393" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M428.71978672900826,541.8906342390848L605.7093811035156,997.6050796508789L727.8187561035156,997.6050796508789" marker-end="url(#arrowhead394)" style="fill:none"></path><defs><marker id="arrowhead394" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M494.5609436035156,1043.605079650879L605.7093811035156,1043.605079650879L727.8187561035156,1013.4970394498739" marker-end="url(#arrowhead395)" style="fill:none"></path><defs><marker id="arrowhead395" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g><g class="edgePath" style="opacity: 1;"><path class="path" d="M468.3734436035156,664.9907141318981L605.7093811035156,617.6050796508789L737.6937561035156,577.628405263316" marker-end="url(#arrowhead396)" style="fill:none"></path><defs><marker id="arrowhead396" viewBox="0 0 10 10" refX="9" refY="5" markerUnits="strokeWidth" markerWidth="8" markerHeight="6" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"></path></marker></defs></g></g><g class="edgeLabels"><g class="edgeLabel" transform="translate(605.7093811035156,504.5894546508789)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,688.6050796508789)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,784.6050796508789)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,880.6050796508789)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,319)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,33)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,127)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,223)" style="opacity: 1;"><g transform="translate(-25.1328125,-13)" class="label"><foreignObject width="50.265625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,81)" style="opacity: 1;"><g transform="translate(-40.4375,-13)" class="label"><foreignObject width="80.875" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">butterfly_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,177)" style="opacity: 1;"><g transform="translate(-40.4375,-13)" class="label"><foreignObject width="80.875" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">butterfly_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,273)" style="opacity: 1;"><g transform="translate(-40.4375,-13)" class="label"><foreignObject width="80.875" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">butterfly_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(249.10000610351562,131.9339828491211)" style="opacity: 1;"><g transform="translate(-59.8046875,-13)" class="label"><foreignObject width="119.609375" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">butterfly_type_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,391.5738296508789)" style="opacity: 1;"><g transform="translate(-29.5703125,-13)" class="label"><foreignObject width="59.140625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">quest_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(249.10000610351562,277.0816421508789)" style="opacity: 1;"><g transform="translate(-54.34375,-13)" class="label"><foreignObject width="108.6875" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">quest_status_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(249.10000610351562,373.0816421508789)" style="opacity: 1;"><g transform="translate(-48.9453125,-13)" class="label"><foreignObject width="97.890625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">quest_type_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,951.6050796508789)" style="opacity: 1;"><g transform="translate(-84.859375,-13)" class="label"><foreignObject width="169.71875" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">initiator_user_id/user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,997.6050796508789)" style="opacity: 1;"><g transform="translate(-85.3671875,-13)" class="label"><foreignObject width="170.734375" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">receiver_user_id/user_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,1043.605079650879)" style="opacity: 1;"><g transform="translate(-86.1484375,-13)" class="label"><foreignObject width="172.296875" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">user_interaction_type_id</span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(605.7093811035156,617.6050796508789)" style="opacity: 1;"><g transform="translate(-49.578125,-13)" class="label"><foreignObject width="99.15625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;"><span class="edgeLabel">mood_type_id</span></div></foreignObject></g></g></g><g class="nodes"><g class="node" id="A" transform="translate(414.2328186035156,504.5894546508789)" style="opacity: 1;"><circle x="-40.015625" y="-23" r="40.015625"></circle><g class="label" transform="translate(0,0)"><g transform="translate(-30.015625,-13)"><foreignObject width="60.03125" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">UserInfo</div></foreignObject></g></g></g><g class="node" id="B" transform="translate(792.2718811035156,561.0972671508789)" style="opacity: 1;"><rect rx="0" ry="0" x="-54.578125" y="-23" width="109.15625" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-44.578125,-13)"><foreignObject width="89.15625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">MoodReport</div></foreignObject></g></g></g><g class="node" id="C" transform="translate(792.2718811035156,688.6050796508789)" style="opacity: 1;"><rect rx="0" ry="0" x="-62.9296875" y="-23" width="125.859375" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-52.9296875,-13)"><foreignObject width="105.859375" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">BaselineReport</div></foreignObject></g></g></g><g class="node" id="D" transform="translate(792.2718811035156,784.6050796508789)" style="opacity: 1;"><rect rx="0" ry="0" x="-63.78125" y="-23" width="127.5625" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-53.78125,-13)"><foreignObject width="107.5625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">LocationReport</div></foreignObject></g></g></g><g class="node" id="E" transform="translate(792.2718811035156,880.6050796508789)" style="opacity: 1;"><rect rx="0" ry="0" x="-59" y="-23" width="118" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-49,-13)"><foreignObject width="98" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">SystemReport</div></foreignObject></g></g></g><g class="node" id="F" transform="translate(792.2718811035156,373.0816421508789)" style="opacity: 1;"><rect rx="0" ry="0" x="-66.125" y="-23" width="132.25" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-56.125,-13)"><foreignObject width="112.25" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">QuestionReport</div></foreignObject></g></g></g><g class="node" id="G" transform="translate(792.2718811035156,56)" style="opacity: 1;"><rect rx="0" ry="0" x="-57.1953125" y="-23" width="114.390625" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-47.1953125,-13)"><foreignObject width="94.390625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">UserButterfly</div></foreignObject></g></g></g><g class="node" id="H" transform="translate(792.2718811035156,152)" style="opacity: 1;"><rect rx="0" ry="0" x="-75.4140625" y="-23" width="150.828125" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-65.4140625,-13)"><foreignObject width="130.828125" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">ButterflyComment</div></foreignObject></g></g></g><g class="node" id="I" transform="translate(792.2718811035156,248)" style="opacity: 1;"><rect rx="0" ry="0" x="-54.96875" y="-23" width="109.9375" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-44.96875,-13)"><foreignObject width="89.9375" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">ButterflyLike</div></foreignObject></g></g></g><g class="node" id="J" transform="translate(414.2328186035156,131.9339828491211)" style="opacity: 1;"><polygon points="57.571875,0 115.14375,-57.571875 57.571875,-115.14375 0,-57.571875" rx="5" ry="5" transform="translate(-57.571875,57.571875)"></polygon><g class="label" transform="translate(0,0)"><g transform="translate(-30.96875,-13)"><foreignObject width="61.9375" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Butterfly</div></foreignObject></g></g></g><g class="node" id="N" transform="translate(92.14765930175781,131.9339828491211)" style="opacity: 1;"><polygon points="72.14765625,0 144.2953125,-72.14765625 72.14765625,-144.2953125 0,-72.14765625" rx="5" ry="5" transform="translate(-72.14765625,72.14765625)"></polygon><g class="label" transform="translate(0,0)"><g transform="translate(-47.1640625,-13)"><foreignObject width="94.328125" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">ButterflyType</div></foreignObject></g></g></g><g class="node" id="K" transform="translate(414.2328186035156,373.0816421508789)" style="opacity: 1;"><rect rx="5" ry="5" x="-31.3671875" y="-23" width="62.734375" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-21.3671875,-13)"><foreignObject width="42.734375" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">Quest</div></foreignObject></g></g></g><g class="node" id="L" transform="translate(92.14765930175781,277.0816421508789)" style="opacity: 1;"><rect rx="5" ry="5" x="-53.15625" y="-23" width="106.3125" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-43.15625,-13)"><foreignObject width="86.3125" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">QuestStatus</div></foreignObject></g></g></g><g class="node" id="M" transform="translate(92.14765930175781,373.0816421508789)" style="opacity: 1;"><rect rx="5" ry="5" x="-47.515625" y="-23" width="95.03125" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-37.515625,-13)"><foreignObject width="75.03125" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">QuestType</div></foreignObject></g></g></g><g class="node" id="O" transform="translate(792.2718811035156,997.6050796508789)" style="opacity: 1;"><rect rx="0" ry="0" x="-64.453125" y="-23" width="128.90625" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-54.453125,-13)"><foreignObject width="108.90625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">UserInteraction</div></foreignObject></g></g></g><g class="node" id="P" transform="translate(414.2328186035156,1043.605079650879)" style="opacity: 1;"><rect rx="0" ry="0" x="-80.328125" y="-23" width="160.65625" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-70.328125,-13)"><foreignObject width="140.65625" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">UserInteractionType</div></foreignObject></g></g></g><g class="node" id="Q" transform="translate(414.2328186035156,683.6710968017578)" style="opacity: 1;"><rect rx="0" ry="0" x="-54.140625" y="-23" width="108.28125" height="46"></rect><g class="label" transform="translate(0,0)"><g transform="translate(-44.140625,-13)"><foreignObject width="88.28125" height="26"><div xmlns="http://www.w3.org/1999/xhtml" style="display: inline-block; white-space: nowrap;">MoodTypeId</div></foreignObject></g></g></g></g></g></g></svg></div>
<p><strong>Note:</strong><br>
All validation part depends on this foreign key relationship map.<br>
Example:<br>
If we want to create a new quest, there are two fields to be validated, <strong>quest_status_id</strong> and <strong>quest_type_id</strong>. Assuming the incoming quest_status_id is 100, however, this is no item whose <strong>quest_status_id</strong> is 100, creating is fail. And it returns a <strong>409 CONFLICT</strong> error.</p>
<h1 id="token">Token</h1>
<ul>
<li>Token system in this server is based on <a href="http://getblimp.github.io/django-rest-framework-jwt/">REST framework<br>
JWT</a>.</li>
<li>Any request with the token takes a user object to the server.</li>
<li>For more information, <a href="https://github.com/LooDaHu/ARORA_General_Introduction/blob/master/README.md">here</a>.</li>
</ul>
<h2 id="get-a-token">Get a Token</h2>
<blockquote>
<p>URL: <a href="http://127.0.0.1:8000/api-token-auth/">http://127.0.0.1:8000/api-token-auth/</a><br>
Method: POST<br>
Data in JSON: { “username”:"< user_name >", “password”:"< password >"}</p>
</blockquote>
<h2 id="verify-a-token">Verify a Token</h2>
<blockquote>
<p>URL: <a href="http://127.0.0.1:8000/api-token-verify">http://127.0.0.1:8000/api-token-verify</a><br>
Method: POST<br>
Data in JSON: { “token”:“JWT < token_to_be_refresh >”}</p>
</blockquote>
<h2 id="refresh-a-token">Refresh a Token</h2>
<blockquote>
<p>URL: <a href="http://127.0.0.1:8000/api-token-refresh">http://127.0.0.1:8000/api-token-refresh</a><br>
Method: POST<br>
Data in JSON: { “token”:“JWT < token_to_be_refresh >”}<br>
Note: ‘<a href="http://getblimp.github.io/django-rest-framework-jwt/#additional-settings">JWT_ALLOW_REFRESH</a>’ should be True to enable <a href="http://getblimp.github.io/django-rest-framework-jwt/#refresh-token">refreshing token</a>.</p>
</blockquote>
<h1 id="contact">Contact</h1>
<p>If you have any question about the above content, be free to contact me.</p>
<blockquote>
<p>Developer: Jinming Yang<br>
Email: <a href="mailto:[email protected]">[email protected]</a><br>
Github: @LooDaHu<br>
WeChat: a651120561</p>
</blockquote>
<p>And here is a simple tutorial to fast set-up about <a href="https://github.com/LooDaHu/ARORA_General_Introduction/blob/master/README.md">Django-REST-framework and Retrofit</a>.</p>
</div>
</div>
</body>
</html>