February 2019
Intermediate to advanced
446 pages
10h 55m
English
Similarly, you could also perform some negative scenarios, as shown in the following table. In this table, all the URLs start with http://localhost:8080:
|
URL |
JSON output |
|
/calculation/power?base=2a&exponent=4 |
{
"function": "power",
"input": [
"2a",
"4"
],
"output": [
"Base or/and Exponent is/are not set to numeric value."
]
} |
|
/calculation/power?base=2&exponent=4b |
{
"function": "power",
"input": [
"2",
"4b"
],
"output": [
"Base or/and Exponent is/are not set to numeric value."
]
} |
|
/calculation/power?base=2.0a&exponent=a4 |
{
"function": "power",
"input": [
"2.0a",
"a4"
],
"output": [
"Base or/and Exponent is/are not set to numeric value."
]
} |
|
/calculation/sqrt/144a |
{ "function": "sqrt", ... |
Read now
Unlock full access