Example of using a Dynamic URL with REST service please?
Hello!
I've defined a REST service which connects to a remote back-end that accepts parameters and "commands". For example:
http://www.mybackend.com/api.php?USER...
I'd like to keep it simple so that the Service definition in Appery simply has the connection URL and USERNAME / PASSWORD it needs to reach the backend - with everything else specified when I invoke the service.
The USERNAME and PASSWORD are setup as part of the service and it seems pretty straightforward to map a request parameter from a component (so that handles the "PARAMETER" side of my request), what I'd like is to pass a different COMMAND value to the service request each time depending on what I'd like the service to do. Sometimes it might be DELETE, sometimes ADD, sometimes LIST etc.
This sounds like I need to setup a variable of some kind in the request parameters of the service I've defined and then set that variable's value when I invoke the service (eg; DELETE, ADD, etc.). It seems like I need to use a Dynamic URl as discussed here: http://docs.appery.io/documentation/r... but for the life of me I can't figure out how I set this up and call it when I invoke the service on my Appery page.
Presumably I create, say {command} in the Request Parameter of the service I define and then somehow* specify the contents of {command} when invoking the service itself?
This is the part I don't get!

If someone could provide an example I'd be grateful. According to another post, Max provided an example at the bottom of https://getsatisfaction.com/apperyio/... but the link seems to have died.
Thanks,
Steve