-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.http
116 lines (87 loc) · 2.3 KB
/
test.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
##VARIABLE
@hostname = localhost
@port = 5000
@host = {{hostname}}:{{port}}
@contentType = application/json
@id = 61d9a4d7681bfa3703765931
###CREATE A STREAK
POST http://{{host}}/streak HTTP/1.1
Content-Type: {{contentType}}
{
"title" : "100 days of javascript",
"days" : "100",
"description" : "The motive is to cover the fundamantals",
}
###VERIFY EMAIL
POST http://{{host}}/user/verifyEmail HTTP/1.1
Content-Type: {{contentType}}
{
"userId" : "6276a6feb65c415759b7014e",
"otp" : "7226"
}
####GET STREAKS
GET http://{{host}}/streak HTTP/1.1
Content-Type: {{contentType}}
###DELETE STREAK
DELETE http://{{host}}/streak/{{id}} HTTP/1.1
Content-Type: {{contentType}}
###DELETE STREAK AND UPDATE REWARD
DELETE http://{{host}}/streak/{{id}}/deleteAndUpdate HTTP/1.1
Content-Type: {{contentType}}
###UPDATE STREAK
PATCH http://{{host}}/streak/{{id}} HTTP/1.1
Content-Type: {{contentType}}
{
"title" : "10 days of javascript",
"days" : "10",
"description" : "The motive is to cover the fundamantals"
}
###CREATE STREAK DETAIL
POST http://{{host}}/streakDetail HTTP/1.1
Content-Type: {{contentType}}
{
"date" : "2021-08-03T00:00:00.000Z",
"streakId" : "61097dc29a9b9e41d712607e",
"rewards" : [],
"reward" : false
}
####GET STREAK DETAIL
GET http://{{host}}/streakDetail/{{id}} HTTP/1.1
Content-Type: {{contentType}}
###UPDATE STREAK DETAIL
PATCH http://{{host}}/streakDetail/{{id}} HTTP/1.1
Content-Type: {{contentType}}
{
"date" : "1626458086485",
"streakId" : "60f1ca55cf75426f325ad773",
"rewards" : [],
"reward" : false
}
###DELETE STREAK DETAIL
DELETE http://{{host}}/streakDetail/{{id}} HTTP/1.1
Content-Type: {{contentType}}
###CREATE REWARD
POST http://{{host}}/reward HTTP/1.1
Content-Type: {{contentType}}
{
"title" : "Buy Monitor",
"streakId" : "60f1ca55cf75426f325ad773",
"date" : "1626458086485"
}
####GET REWARDS
GET http://{{host}}/reward HTTP/1.1
Content-Type: {{contentType}}
###UPDATE REWARD
PATCH http://{{host}}/reward/{{id}} HTTP/1.1
Content-Type: {{contentType}}
{
"title" : "Buy Monitor12",
"streakId" : "60f1ca55cf75426f325ad773",
"date" : "1626458086485"
}
###DELETE REWARD
DELETE http://{{host}}/reward/{{id}} HTTP/1.1
Content-Type: {{contentType}}
###DELETE REWARDS BY STREAK ID
DELETE http://{{host}}/reward/{{id}}/bulk HTTP/1.1
Content-Type: {{contentType}}