-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequest from Linan.txt
77 lines (74 loc) · 3.04 KB
/
Request from Linan.txt
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
In order of importance
1. JSON Output for all checkpoints
[
{
"title": "title of the checkpoint",
"description": "description for the checkpoint",
"lecturer": "name of the lecturer",
"url": "YouTube URL of the checkpoint",
"lesson": "lesson that the checkpoint belongs to",
"topic": "topic that the checkpoint belongs to",
"seab": "seab_subtopic that the checkpoint belongs to",
"subject": "subject that the checkpoint belongs to"
},
{
"title": "title of the checkpoint",
"description": "description for the checkpoint",
"lecturer": "name of the lecturer",
"url": "YouTube URL of the checkpoint",
"lesson": "lesson that the checkpoint belongs to",
"topic": "topic that the checkpoint belongs to",
"seab": "seab_subtopic that the checkpoint belongs to",
"subject": "subject that the checkpoint belongs to"
},
{
"title": "title of the checkpoint",
"description": "description for the checkpoint",
"lecturer": "name of the lecturer",
"url": "YouTube URL of the checkpoint",
"lesson": "lesson that the checkpoint belongs to",
"topic": "topic that the checkpoint belongs to",
"seab": "seab_subtopic that the checkpoint belongs to",
"subject": "subject that the checkpoint belongs to"
}
]
2. Add new checkpoint by taking JSON
POST request sending you a String of the following format
[
{
"title": "title of the checkpoint",
"description": "description for the checkpoint",
"lecturer": "name of the lecturer",
"url": "YouTube URL of the checkpoint",
"lesson": "lesson that the checkpoint belongs to",
"topic": "topic that the checkpoint belongs to",
"seab": "seab_subtopic that the checkpoint belongs to",
"subject": "subject that the checkpoint belongs to"
"order": "numbering of the checkpoint within the LESSON"
},
{
"title": "title of the checkpoint",
"description": "description for the checkpoint",
"lecturer": "name of the lecturer",
"url": "YouTube URL of the checkpoint",
"lesson": "lesson that the checkpoint belongs to",
"topic": "topic that the checkpoint belongs to",
"seab": "seab_subtopic that the checkpoint belongs to",
"subject": "subject that the checkpoint belongs to"
"order": "numbering of the checkpoint within the LESSON"
},
{
"title": "title of the checkpoint",
"description": "description for the checkpoint",
"lecturer": "name of the lecturer",
"url": "YouTube URL of the checkpoint",
"lesson": "lesson that the checkpoint belongs to",
"topic": "topic that the checkpoint belongs to",
"seab": "seab_subtopic that the checkpoint belongs to",
"subject": "subject that the checkpoint belongs to"
"order": "numbering of the checkpoint within the LESSON"
}
]
If the
- url
already exists, reject the single duplicate object within the JSON.