-
Notifications
You must be signed in to change notification settings - Fork 0
/
tests.http
52 lines (38 loc) · 1.72 KB
/
tests.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
GET http://localhost:3000/api/tutorials/tutorials
###
GET http://localhost:3000/api/tutorials/62f29f178da7b5756859e957
###
DELETE http://localhost:3000/api/tutorials/6309d8a7417c36703ec888ee
###
POST http://localhost:3000/api/tutorials/tutorials
content-type: application/json
{
"title": "DIY Water Filter",
"instructions": "You can easily make a water filter with children using recycled materials found at home. This project is best for children in grades three through six, but it will work for all ages. Construction of the homemade water filter will take about an hour to build. Testing of the water filter can take anywhere from an hour to several hours depending on how fast the water drips. By using natural materials that mimic the water cycle of the Earth, children can learn how the process of infiltration works and create a water filter that works.",
"ability": "Intermediate",
"creator": "Boolean Pirates",
"materials":"Plastic Bottle, Charcoal",
"videoUrl": "https://www.youtube.com/watch?v=-7iTVmcR58A",
"imageUrl": "http://res.cloudinary.com/dcyovjaom/image/upload/v1660649635/th_xdlppl.webp",
"likes": [
"google-oauth2|115738172154344632327"
],
"comments": [
"This is great! - posted by BobbyD at 16/08/2022, 12:34:16#£)*$%^!!%https://lh3.googleusercontent.com/a/AItbvmngyq4ELaljjnc4UxQJpIT7wzXgUXDx06STjotX=s96-c"
],
"creator_image_url": [
"https://lh3.googleusercontent.com/a/AItbvmngyq4ELaljjnc4UxQJpIT7wzXgUXDx06STjotX=s96-c"
]
}
###
PATCH http://localhost:3000/api/tutorials/like/62f29f178da7b5756859e957
content-type: application/json
{
"userId" : "Tass2"
}
###
PATCH http://localhost:3000/api/tutorials/comments/62f29f178da7b5756859e957
content-type: application/json
{
"addComments" : "Test adding comments"
}