-
Notifications
You must be signed in to change notification settings - Fork 0
/
REQUESTS.txt
55 lines (45 loc) · 959 Bytes
/
REQUESTS.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
GET
http://localhost:9080/subjects/undergraduate/cs/1/1
http://localhost:9080/students/15001008
POST
http://localhost:9080/subjects/
{
"name": "mathstd",
"code": "SCS20004",
"year": 1,
"semester": 1,
"undergraduate": true,
"stream": "cs"
}
http://localhost:9080/students/register
{ "name": "pasindu",
"registration_number": "15001008",
"password_hash": "pass",
"registered_year": "2018",
"undergraduate": true,
"stream":"cs"
}
http://localhost:9080/students/15001008/subjects/1/1
[{"name":"Maths" , "_id":"SCS20001" },
{"name":"Mathsasdas" , "_id":"SCS20002" },
{"name":"Mathsasdas" , "_id":"SCS20003" }
]
http://localhost:9080/exams/
{
"date":"2018.11.15",
"code": "EX003",
"year": 1,
"semester": 1,
"undergraduate": true,
"stream": "cs"
}
http://localhost:9080/members/register
{
"username":"admin",
"password":"pass"
}
http://localhost:9080/students/login
{
"id":"15001008",
"password":"pass"
}