-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontract.json
More file actions
117 lines (110 loc) · 2.27 KB
/
Copy pathcontract.json
File metadata and controls
117 lines (110 loc) · 2.27 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
// POST
{"post": [
// User:
[{
"username":"00000",
"first_name":"raghav",
"email":"raghav.g@domain.country",
"password":"1234",
"userprofile":{
"employee_code": "00000",
"dapartment": 1,
"business_unit": "HQ",
"unit": "Technical",
"function": "Engineer",
"location": "NCR",
"manager_code": 00001,
"manager_name": "nitin"
},
"is_staff": false
}],
// Category:
{
"category_name": "motivation"
},
// Department:
{
"department_name": "server"
},
// Training:
{
"name": "Testing",
"category": 1,
"details": {
"description": "Description about training"
}
},
// Content:
{
"title": "Black-box",
"path": "http://127.0.0.1:8000/media/Screen_Shot_2018-05-25_at_10.25.06_PM.png",
"attributes": {},
"training": [
3
]
},
// Assignment:
{
"user": 1,
"training": 2
},
// UserHistory:
{
"user": 1,
"content": 2
}
]},
// GET
{"get": [
// USER:
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"id": 52,
"username": "6165",
"first_name": "",
"last_name": "",
"email": "",
"password": "",
"is_staff": true,
"userprofile": {
"employee_code": 6165,
"business_unit": null,
"unit": null,
"function": null,
"location": null,
"manager_code": 0,
"manager_email": null,
"department": null
}
}
]
},
// CONTENT:
{
"name": "Testing",
"category": {
"id": 3,
"category_name": "server"
},
"department": {
"id": 1,
"department_name": "technical"
},
"details": {},
"training_content": [{
"id": 3,
"title": "Black-box",
"path": "http://127.0.0.1:8000/media/Screen_Shot_2018-05-25_at_10.25.06_PM.png",
"attributes": {},
"training_id": [3]
}]
}
// USER_DEPARTMENT_TRAINING:
// http://localhost:8000/api/user/65465/department_training/
// CATEGORY_TRAINING:
// http://localhost:8000/api/category/2/category_training
]}