Hi,
i'd like to add the values of some storage variables to the url of my rest-Service-url.
How can i do this?
Thank you
hoefsi
Hi,
i'd like to add the values of some storage variables to the url of my rest-Service-url.
How can i do this?
Thank you
hoefsi
Hi Andre -
Do you mean something like this: http://devcenter.appery.io/documentat...
i'm not sure....
how do i get the values of the storage variables into the rest-Settings?
Hello Andre,
SETTINGS_NAME.SETTINGS_PROPERTY= Apperty.storage.VARIABLE_NAME.get().PROPERTY_NAME
Hello Evgene,
i tried
Impuls_Rest_Settings.username= Appery.storage.username.get().text;
Impuls_Rest_Settings.passwort= Appery.storage.passwort.get().text;
but it doesn't work?
But maybe there is another way?
I 'd like to add username and passwort to url (calling a php-File) to generate some content for Rest-Service-Call.....
Hi Andre,
Please try following solution:
open your service settings tab. And use {username} and {passwort} in parts of your URL.
pre
For example: http://domain.com/{username}/{passwort}/
/pre
Navigate to "request" tab. And add to "Query String" subtab parameters:
"username" and "passwort".
Now you can open your datasource and link needed storage to request "username" and "passwort" parameters.
Regards.
Andre,
You opened service response mapping, but you need service request mapping. You could do it in such way:
Open tab "Data" at your screen
Click “Add” to the right of the Before send event field of datasource, and choose “Mapping”
Thank you!
This worked fine!