-
Notifications
You must be signed in to change notification settings - Fork 0
/
studentRequests.http
39 lines (31 loc) · 776 Bytes
/
studentRequests.http
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
### get all students details
GET http:https://localhost:5000/students
### get details of a student with ID 1390
GET http:https://localhost:5000/students/1390
### delete a student record with ID 1390
DELETE http:https://localhost:5000/students/1390
### create a new student document
POST http:https://localhost:5000/students/
content-type: application/json
{
"ID": 1000,
"name": "test",
"address": {
"line1": "address1",
"line2": " address2",
"city": "city"
},
"courseID": 145,
"phone": "011 2225 112",
"email": "[email protected]"
}
### update student details of ID 1000
PUT http:https://localhost:5000/students/1000
content-type: application/json
{
"name":"new name",
"address": {
"line3":"Added",
"city": "West Demarcuschester"
}
}