What is a resource exactly? Is GET /sumof/2/5 -> 7 a resource?
Instead, you express your summing service with a hypermedia control. In HTML you have forms, which is a perfectly fine and very interoperable way; look at all the deployed software understanding HTML forms! Another control fitting the example here is to send the client an RFC 6570 URI template (I'm uncertain of the correct syntax with the * in detail here, sorry, take this as illustration only):
Link: </sumof/{summand*}>;
rel="http://RivieraKid.example.net/summing_service";
title="RivieraKid's summing service";
hreflang="en";
type="application/hal+json; profile=http://RivieraKid.example.net/"
Note that the server can change the URI any time (and hopefully forward to the new address with a 3xx response), the client only needs to be taught the semantics of the link relation and the media type. The rest is plain internet standards.That said, for getting started you can think as "resource" being a web-addressable representation of an object in your application.