1+ {
2+ "variables" : [],
3+ "info" : {
4+ "name" : " Course API" ,
5+ "_postman_id" : " ee42e27b-f809-632f-1ac0-b402794f9807" ,
6+ "description" : " " ,
7+ "schema" : " https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
8+ },
9+ "item" : [
10+ {
11+ "name" : " Get Courses" ,
12+ "request" : {
13+ "url" : " localhost:5000/api/courses" ,
14+ "method" : " GET" ,
15+ "header" : [
16+ {
17+ "key" : " Content-Type" ,
18+ "value" : " application/json" ,
19+ "description" : " "
20+ },
21+ {
22+ "key" : " Authorization" ,
23+ "value" : " Basic am9lQHNtaXRoLmNvbTpwYXNzd29yZA==" ,
24+ "description" : " "
25+ }
26+ ],
27+ "body" : {
28+ "mode" : " raw" ,
29+ "raw" : " {\n \" name\" : \" Awesome Recipe\" ,\n \" prepTime\" : 0,\n \" ingredients\" : [\n {\n \" item\" : \" Potatoes\"\n },\n {\n }\n ],\n \" steps\" : [\n ]\n }"
30+ },
31+ "description" : " "
32+ },
33+ "response" : []
34+ },
35+ {
36+ "name" : " Get Course" ,
37+ "request" : {
38+ "url" : " localhost:5000/api/courses/57029ed4795118be119cc43d" ,
39+ "method" : " GET" ,
40+ "header" : [
41+ {
42+ "key" : " Content-Type" ,
43+ "value" : " application/json" ,
44+ "description" : " "
45+ }
46+ ],
47+ "body" : {
48+ "mode" : " raw" ,
49+ "raw" : " {\n \" name\" : \" Awesome Recipe\" ,\n \" prepTime\" : 0,\n \" ingredients\" : [\n {\n \" item\" : \" Potatoes\"\n },\n {\n }\n ],\n \" steps\" : [\n ]\n }"
50+ },
51+ "description" : " "
52+ },
53+ "response" : []
54+ },
55+ {
56+ "name" : " Create User (Incomplete Data)" ,
57+ "request" : {
58+ "url" : " http://localhost:5000/api/users" ,
59+ "method" : " POST" ,
60+ "header" : [
61+ {
62+ "key" : " Content-Type" ,
63+ "value" : " application/json" ,
64+ "description" : " "
65+ }
66+ ],
67+ "body" : {
68+ "mode" : " raw" ,
69+ "raw" : " {}"
70+ },
71+ "description" : " "
72+ },
73+ "response" : []
74+ },
75+ {
76+ "name" : " Create User" ,
77+ "request" : {
78+ "url" : " http://localhost:5000/api/users" ,
79+ "method" : " POST" ,
80+ "header" : [
81+ {
82+ "key" : " Content-Type" ,
83+ "value" : " application/json" ,
84+ "description" : " "
85+ }
86+ ],
87+ "body" : {
88+ "mode" : " raw" ,
89+ "raw" : " {\n \" fullName\" : \" John Smith\" ,\n \" emailAddress\" : \" john@smith.com\" ,\n \" password\" : \" password\" ,\n \" confirmPassword\" : \" password\"\n }"
90+ },
91+ "description" : " "
92+ },
93+ "response" : []
94+ },
95+ {
96+ "name" : " Create User (Existing Email Address)" ,
97+ "request" : {
98+ "url" : " http://localhost:5000/api/users" ,
99+ "method" : " POST" ,
100+ "header" : [
101+ {
102+ "key" : " Content-Type" ,
103+ "value" : " application/json" ,
104+ "description" : " "
105+ }
106+ ],
107+ "body" : {
108+ "mode" : " raw" ,
109+ "raw" : " {\n \" fullName\" : \" Joe Smith\" ,\n \" emailAddress\" : \" joe@smith.com\" ,\n \" password\" : \" password\" ,\n \" confirmPassword\" : \" password\"\n }"
110+ },
111+ "description" : " "
112+ },
113+ "response" : []
114+ },
115+ {
116+ "name" : " Get Users (No Auth)" ,
117+ "request" : {
118+ "url" : " http://localhost:5000/api/users" ,
119+ "method" : " GET" ,
120+ "header" : [],
121+ "body" : {},
122+ "description" : " "
123+ },
124+ "response" : []
125+ },
126+ {
127+ "name" : " Get Users (With Auth)" ,
128+ "request" : {
129+ "url" : " http://localhost:5000/api/users" ,
130+ "method" : " GET" ,
131+ "header" : [
132+ {
133+ "key" : " Authorization" ,
134+ "value" : " Basic am9lQHNtaXRoLmNvbTpwYXNzd29yZA==" ,
135+ "description" : " "
136+ }
137+ ],
138+ "body" : {},
139+ "description" : " "
140+ },
141+ "response" : []
142+ },
143+ {
144+ "name" : " Create Course (No Auth, Incomplete Data)" ,
145+ "request" : {
146+ "url" : " localhost:5000/api/courses" ,
147+ "method" : " POST" ,
148+ "header" : [
149+ {
150+ "key" : " Content-Type" ,
151+ "value" : " application/json" ,
152+ "description" : " "
153+ }
154+ ],
155+ "body" : {
156+ "mode" : " raw" ,
157+ "raw" : " {}"
158+ },
159+ "description" : " "
160+ },
161+ "response" : []
162+ },
163+ {
164+ "name" : " Create Course (Incomplete Data)" ,
165+ "request" : {
166+ "url" : " localhost:5000/api/courses" ,
167+ "method" : " POST" ,
168+ "header" : [
169+ {
170+ "key" : " Content-Type" ,
171+ "value" : " application/json" ,
172+ "description" : " "
173+ },
174+ {
175+ "key" : " Authorization" ,
176+ "value" : " Basic am9lQHNtaXRoLmNvbTpwYXNzd29yZA==" ,
177+ "description" : " "
178+ }
179+ ],
180+ "body" : {
181+ "mode" : " raw" ,
182+ "raw" : " {}"
183+ },
184+ "description" : " "
185+ },
186+ "response" : []
187+ },
188+ {
189+ "name" : " Create Course (Minimum Data)" ,
190+ "request" : {
191+ "url" : " localhost:5000/api/courses" ,
192+ "method" : " POST" ,
193+ "header" : [
194+ {
195+ "key" : " Content-Type" ,
196+ "value" : " application/json" ,
197+ "description" : " "
198+ },
199+ {
200+ "key" : " Authorization" ,
201+ "value" : " Basic am9lQHNtaXRoLmNvbTpwYXNzd29yZA==" ,
202+ "description" : " "
203+ }
204+ ],
205+ "body" : {
206+ "mode" : " raw" ,
207+ "raw" : " {\n \" title\" : \" New Course\" ,\n \" description\" : \" My course description\" ,\n \" user\" : {\n \" _id\" : \" 57029ed4795118be119cc437\"\n },\n \" steps\" : [\n {\n \" title\" : \" Step 1\" ,\n \" description\" : \" My first step.\"\n }\n ]\n }"
208+ },
209+ "description" : " "
210+ },
211+ "response" : []
212+ },
213+ {
214+ "name" : " Update Course (Minimum Data)" ,
215+ "request" : {
216+ "url" : " localhost:5000/api/courses/5702a1fdf18e6ebd1292282e" ,
217+ "method" : " PUT" ,
218+ "header" : [
219+ {
220+ "key" : " Content-Type" ,
221+ "value" : " application/json" ,
222+ "description" : " "
223+ },
224+ {
225+ "key" : " Authorization" ,
226+ "value" : " Basic am9lQHNtaXRoLmNvbTpwYXNzd29yZA==" ,
227+ "description" : " "
228+ }
229+ ],
230+ "body" : {
231+ "mode" : " raw" ,
232+ "raw" : " {\n \" _id\" : \" 5702a1fdf18e6ebd1292282e\" ,\n \" title\" : \" New Course Updated Again Hello\" ,\n \" description\" : \" My course description. And again.\" ,\n \" user\" : {\n \" _id\" : \" 57029ed4795118be119cc437\"\n },\n \" steps\" : [\n {\n \" title\" : \" Step 1\" ,\n \" description\" : \" My first step.\"\n }\n ]\n }\n "
233+ },
234+ "description" : " "
235+ },
236+ "response" : []
237+ },
238+ {
239+ "name" : " Create Review" ,
240+ "request" : {
241+ "url" : " http://localhost:5000/api/courses/57029ed4795118be119cc43d/reviews" ,
242+ "method" : " POST" ,
243+ "header" : [
244+ {
245+ "key" : " Authorization" ,
246+ "value" : " Basic am9lQHNtaXRoLmNvbTpwYXNzd29yZA==" ,
247+ "description" : " "
248+ },
249+ {
250+ "key" : " Content-Type" ,
251+ "value" : " application/json" ,
252+ "description" : " "
253+ }
254+ ],
255+ "body" : {
256+ "mode" : " raw" ,
257+ "raw" : " {\n \" rating\" : 2\n }"
258+ },
259+ "description" : " "
260+ },
261+ "response" : []
262+ }
263+ ]
264+ }
0 commit comments