-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoint-test.http
75 lines (62 loc) · 1.27 KB
/
endpoint-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
### Test Add Operation
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "add",
"number1": 10,
"number2": 5
}
### Test Subtract Operation
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "subtract",
"number1": 10,
"number2": 5
}
### Test Multiply Operation
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "multiply",
"number1": 10,
"number2": 5
}
### Test Divide Operation
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "divide",
"number1": 10,
"number2": 0
}
###
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "modulo",
"number1": 10,
"number2": 4
}
###
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "power",
"number1": 10,
"number2": 5
}
###
POST http://localhost:8080/calculate
Content-Type: application/json
{
"username": "testuser",
"calculator_type": "factorial",
"number1": 5
}