Skip to content

Commit 7a1e593

Browse files
committed
project o4 first submision
0 parents  commit 7a1e593

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+43923
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/.DS_Store

.prettierrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"tabWidth": 2,
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 80,
6+
"trailingComma": "none"
7+
}

Final Project.postman_collection.json

+259
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
{
2+
"info": {
3+
"_postman_id": "d0700d24-79ec-487e-8403-b565bef7f8e0",
4+
"name": "Udacity C4 Project",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "TODOs",
10+
"item": [
11+
{
12+
"name": "Get all todos",
13+
"request": {
14+
"method": "GET",
15+
"header": [
16+
{
17+
"key": "Authorization",
18+
"value": "Bearer {{authToken}}",
19+
"type": "text"
20+
}
21+
],
22+
"body": {
23+
"mode": "raw",
24+
"raw": ""
25+
},
26+
"url": {
27+
"raw": "https://{{apiId}}.execute-api.us-east-1.amazonaws.com/dev/todos",
28+
"protocol": "https",
29+
"host": [
30+
"{{apiId}}",
31+
"execute-api",
32+
"us-east-1",
33+
"amazonaws",
34+
"com"
35+
],
36+
"path": [
37+
"dev",
38+
"todos"
39+
]
40+
}
41+
},
42+
"response": []
43+
},
44+
{
45+
"name": "Create todo",
46+
"request": {
47+
"method": "POST",
48+
"header": [
49+
{
50+
"key": "Content-Type",
51+
"name": "Content-Type",
52+
"value": "application/json",
53+
"type": "text"
54+
},
55+
{
56+
"key": "Authorization",
57+
"value": "Bearer {{authToken}}",
58+
"type": "text"
59+
}
60+
],
61+
"body": {
62+
"mode": "raw",
63+
"raw": "{\n\t\"name\": \"Water flowers\",\n\t\"dueDate\": \"2019-06-11\"\n}"
64+
},
65+
"url": {
66+
"raw": "https://{{apiId}}.execute-api.us-east-1.amazonaws.com/dev/todos",
67+
"protocol": "https",
68+
"host": [
69+
"{{apiId}}",
70+
"execute-api",
71+
"us-east-1",
72+
"amazonaws",
73+
"com"
74+
],
75+
"path": [
76+
"dev",
77+
"todos"
78+
]
79+
}
80+
},
81+
"response": []
82+
},
83+
{
84+
"name": "Update todo",
85+
"request": {
86+
"method": "PUT",
87+
"header": [
88+
{
89+
"key": "Content-Type",
90+
"name": "Content-Type",
91+
"type": "text",
92+
"value": "application/json"
93+
},
94+
{
95+
"key": "Authorization",
96+
"type": "text",
97+
"value": "Bearer {{authToken}}"
98+
}
99+
],
100+
"body": {
101+
"mode": "raw",
102+
"raw": "{\n\t\"name\": \"Change the world\",\n\t\"dueDate\": \"2019-12-11\",\n\t\"done\": true\n}"
103+
},
104+
"url": {
105+
"raw": "https://{{apiId}}.execute-api.us-east-1.amazonaws.com/dev/todos/35dd600f-43c2-4649-903c-615e1586a26f",
106+
"protocol": "https",
107+
"host": [
108+
"{{apiId}}",
109+
"execute-api",
110+
"us-east-1",
111+
"amazonaws",
112+
"com"
113+
],
114+
"path": [
115+
"dev",
116+
"todos",
117+
"35dd600f-43c2-4649-903c-615e1586a26f"
118+
]
119+
}
120+
},
121+
"response": []
122+
},
123+
{
124+
"name": "Delete todo",
125+
"request": {
126+
"method": "DELETE",
127+
"header": [
128+
{
129+
"key": "Content-Type",
130+
"name": "Content-Type",
131+
"type": "text",
132+
"value": "application/json"
133+
},
134+
{
135+
"key": "Authorization",
136+
"type": "text",
137+
"value": "Bearer {{authToken}}"
138+
}
139+
],
140+
"body": {
141+
"mode": "raw",
142+
"raw": ""
143+
},
144+
"url": {
145+
"raw": "https://{{apiId}}.execute-api.us-east-1.amazonaws.com/dev/todos/fe671583-4512-45f6-9475-4265c04362fb",
146+
"protocol": "https",
147+
"host": [
148+
"{{apiId}}",
149+
"execute-api",
150+
"us-east-1",
151+
"amazonaws",
152+
"com"
153+
],
154+
"path": [
155+
"dev",
156+
"todos",
157+
"fe671583-4512-45f6-9475-4265c04362fb"
158+
]
159+
}
160+
},
161+
"response": []
162+
},
163+
{
164+
"name": "Get attachment URL",
165+
"request": {
166+
"method": "POST",
167+
"header": [
168+
{
169+
"key": "Authorization",
170+
"value": "Bearer {{authToken}}",
171+
"type": "text"
172+
}
173+
],
174+
"body": {
175+
"mode": "raw",
176+
"raw": ""
177+
},
178+
"url": {
179+
"raw": "https://{{apiId}}.execute-api.us-east-1.amazonaws.com/dev/todos/3836b777-9bc4-4429-9b79-ba4e4f5f91c0/attachment",
180+
"protocol": "https",
181+
"host": [
182+
"{{apiId}}",
183+
"execute-api",
184+
"us-east-1",
185+
"amazonaws",
186+
"com"
187+
],
188+
"path": [
189+
"dev",
190+
"todos",
191+
"3836b777-9bc4-4429-9b79-ba4e4f5f91c0",
192+
"attachment"
193+
]
194+
}
195+
},
196+
"response": []
197+
}
198+
],
199+
"event": [
200+
{
201+
"listen": "prerequest",
202+
"script": {
203+
"id": "ce2b42d4-8cc5-4f30-a6ed-e7f0f303c3fd",
204+
"type": "text/javascript",
205+
"exec": [
206+
""
207+
]
208+
}
209+
},
210+
{
211+
"listen": "test",
212+
"script": {
213+
"id": "efb16c49-3866-4241-97d1-360ad72736d8",
214+
"type": "text/javascript",
215+
"exec": [
216+
""
217+
]
218+
}
219+
}
220+
]
221+
}
222+
],
223+
"event": [
224+
{
225+
"listen": "prerequest",
226+
"script": {
227+
"id": "2e83c0fe-6650-44d5-a90f-4c27ff720d83",
228+
"type": "text/javascript",
229+
"exec": [
230+
""
231+
]
232+
}
233+
},
234+
{
235+
"listen": "test",
236+
"script": {
237+
"id": "977c227e-2df3-42eb-9a48-ec25e2f7eeae",
238+
"type": "text/javascript",
239+
"exec": [
240+
""
241+
]
242+
}
243+
}
244+
],
245+
"variable": [
246+
{
247+
"id": "bf208e6b-f66d-4008-9366-dd541ff65425",
248+
"key": "apiId",
249+
"value": "",
250+
"type": "string"
251+
},
252+
{
253+
"id": "9bc6399a-d2bb-4f2d-9ffa-8480370d383c",
254+
"key": "authToken",
255+
"value": "",
256+
"type": "string"
257+
}
258+
]
259+
}

0 commit comments

Comments
 (0)