-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrequests.http
More file actions
101 lines (70 loc) · 2.03 KB
/
Copy pathrequests.http
File metadata and controls
101 lines (70 loc) · 2.03 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
GET http://127.0.0.1:8000/api/subject-list/
content-type: application/json
###
GET http://127.0.0.1:8000/api/subject-detail/2/
content-type: application/json
###
GET http://127.0.0.1:8000/api/branch-list/
content-type: application/json
###
GET http://127.0.0.1:8000/api/branch-detail/3/
content-type: application/json
###
GET http://127.0.0.1:8000/api/course-list/
content-type: application/json
###
GET http://127.0.0.1:8000/api/course-detail/3/
content-type: application/json
###
POST https://httpbin.org/post
Content-Type: application/json
body: {
"firstName": "Bonnie",
"lastName": "Lass",
"email": "bonnie.lass@mycompany.com",
"password": "password",
"role": "admin"
}
###
GET http://127.0.0.1:8000/api/user-list/
content-type: application/json
###
GET http://127.0.0.1:8000/api/user-detail/3/
content-type: application/json
###
GET http://127.0.0.1:8000/api/textbook-list/?page_size=15&page=1
content-type: application/json
{
"page_size": 15,
"page": 1,
}
###
POST http://127.0.0.1:8000/api/textbook-list/
Content-Type: application/json
{
"title": "Concept of Physics part-1",
"author": "H.C. Verma",
"link": "https://drive.google.com/file/d/1x6WgM2Z5addlN2cD2vMRNpRUlvMkpJl9/view?usp=sharing",
"cover_image": "https://drive.google.com/file/d/1xRdE6oqhM3VcAUBwtNiw3ZoFxK3UJHY7/view?usp=sharing",
"subject": "Physics",
"posted_by": "raj",
"description": "A book on physics"
}
###
GET http://127.0.0.1:8000/api/textbook-detail/101/
content-type: application/json
###
PUT http://127.0.0.1:8000/api/textbook-detail/101/
Content-Type: application/json
{
"title": "Concept of Physics part-1 (updated)",
"author": "H.C. Verma",
"link": "https://drive.google.com/file/d/1x6WgM2Z5addlN2cD2vMRNpRUlvMkpJl9/view?usp=sharing",
"cover_image": "https://drive.google.com/file/d/1xRdE6oqhM3VcAUBwtNiw3ZoFxK3UJHY7/view?usp=sharing",
"subject": "Physics",
"posted_by": "deepshetye",
"description": "A book on physics"
}
###
DELETE http://127.0.0.1:8000/api/textbook-detail/101/
Content-Type: application/json