Example API: add

POST /api/v1/{token}/example/add

The Add method accepts two integers, a and b, and returns their sum. This endpoint demonstrates a simple arithmetic operation via a POST request.
Parameter Type Default Description
a (required) int The first integer to be added.
b (required) int The second integer to be added.

Example add requests:

Request with integers a and b, returning their sum a+b.
curl -X POST --data '{"a":2,"b":3}' \
    "https://api.eu-west.hqapi.com/api/v1/YourToken01/example/add"
The response:
{
    "value": 5
}