-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathASPNETTweeter.http
More file actions
73 lines (43 loc) · 1.4 KB
/
Copy pathASPNETTweeter.http
File metadata and controls
73 lines (43 loc) · 1.4 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
@ASPNETTweeter_HostAddress = https://localhost:7235
@SentimentAnalysis_HostAddress = http://localhost:5000
### Happy Path Tests
### GET Index
GET {{ASPNETTweeter_HostAddress}}
Accept: text/html
### GET Tweets
GET {{ASPNETTweeter_HostAddress}}/tweet
Accept: application/json
### POST Tweet
POST {{ASPNETTweeter_HostAddress}}/tweet
Content-Type: application/json
{
"content": "Hello Tom!"
}
### POST Second Tweet
POST {{ASPNETTweeter_HostAddress}}/tweet
Content-Type: application/json
{
"content": "I just bought your new washer. I'm struggling to get it to work. I've called the office 30 times. No one answers. Please help."
}
### Like Tweet
PATCH {{ASPNETTweeter_HostAddress}}/tweet/66ba7827f53116cdf83cf921
### DELETE Tweet
DELETE {{ASPNETTweeter_HostAddress}}/tweet/66b7f579dd563e88fc90e444
### Analyze Tweet
POST {{ASPNETTweeter_HostAddress}}/sentiment/66ba7932f53116cdf83cf922
Accept: application/json
### Sentiment Analysis Tests
POST {{SentimentAnalysis_HostAddress}}/sentiment
Content-Type: application/json
{
"content": "I love .NET! ❤️"
}
### Error Handling Tests
### Liking Tweet that doesn't Exist
PATCH {{ASPNETTweeter_HostAddress}}/tweet/test
###
PATCH {{ASPNETTweeter_HostAddress}}/tweet/66b66193786b480c39e899e0
### Deleting Tweet that doesn't Exist
DELETE {{ASPNETTweeter_HostAddress}}/tweet/test
###
DELETE {{ASPNETTweeter_HostAddress}}/tweet/66b66193786b480c39e899e0