Gater Docs
Search…
Basic Math
Now for a real test run! Gater has a few sample functions to simulate an actual useful request, like one you'll use in your software. Of course, if these functions are actually useful to you, feel free to use them however you see fit.
Let's start with simple addition (yes, Gater can do math). Send a request to https://api.gater.dev/math/addNum/<num1>/<num2>, replacing <num1> and <num2> with any two numbers (float or integer).
For this example, we'll use https://api.gater.dev/math/addNum/5/10
1
{"main":
2
3
{
4
"result":15
5
}
6
7
}
Copied!
Please note that Gater only returns float values, but Gater will accept any number type as an input via URL.
Last modified 3mo ago
Copy link