Hi,
I have a rest service defined "http:///{password}/{command}" with the appery proxy enabled.
I'm trying to call the service via javascript:
restservice1.execute({
data: {
'command': 'get-sensors',
'password': 'test'
}
});
But the proxy doesn't send the request parameters to my rest service according to the browser debugging tools ? It only uses the url without the request parameters.
http:////
This topic is no longer open for comments or replies.
-
Hi Robby,
You added an extra slash in URL parameter. Please check the errors in console, they should be helpful. -
-
No, I didn't. The forum editor removed a tag I placed in the url. The url I use is:
http://domain/{password}/{command}
The proxy service only sends the url without the parameters:
http://domain// -
-
EMPLOYEE
1Hi Robby,
I have tested it and it works:
1 service settings: http://prntscr.com/4vywyp/direct
2 service request: http://prntscr.com/4vyxod/direct
3 invoke service from app with following code:
echo1.execute({body: {param1: 123} })
4 open browser debugger on network tab and find this request.
There you should see modified URL: http://prntscr.com/4vyytg/direct
Regards. -
-
Ok, thx it works now.
Maybe you could add this to the docs for other users:
http://devcenter.appery.io/documentat... -
-
Robby,
Thank you for the update, we'll pass your request to our managers. -