Page 3 of 5

put service

Posted: Sun Oct 27, 2013 10:04 pm
by Igor

Sure,

You use incorrect URL. If you want to put order to DB you need to use one of this URL:
pre
{database_url}/collections/test/{object_id}
/pre
or
pre
{database_url}/collections/vegipizza/{object_id}
/pre
In the current url you use "User" collection I'm not sure if it exist.

Could you clarify what does this service should do?


put service

Posted: Sun Oct 27, 2013 10:11 pm
by Michael4771079

No Igor,
this is in the user database, I have this service in another app, and it works

Image


put service

Posted: Sun Oct 27, 2013 10:18 pm
by Michael4771079

Sorry,
I meant a simular service in another app


put service

Posted: Sun Oct 27, 2013 10:35 pm
by Igor

I've found the error there is a missed bracket in the URL
you should use:
pre
{database_url}/users/{object_id}
/pre
instead of
pre
{database_url/users/{object_id}
/pre
Also you should update your session token to test it.


put service

Posted: Sun Oct 27, 2013 11:06 pm
by Michael4771079

Cheers Igor,
made the changes, cleared localstorage, reset start screen to login, logged in, saves token and id to localstorage, checked, all good. Click order button on vegi pizza screen, array saved to localstorage, click checkout to run currentorderService ,but got new error, here is s/s

Image

Image


put service

Posted: Sun Oct 27, 2013 11:47 pm
by Illya Stepanov

Hi Michael, have you tested the service? Can you show your Test tab?


put service

Posted: Mon Oct 28, 2013 12:17 am
by Michael4771079

lllya,
it fails in the test tab as Igor, suggested, here is the s/s of test tab, without array and with

Image

Image


put service

Posted: Mon Oct 28, 2013 12:20 am
by Michael4771079

put service

Posted: Mon Oct 28, 2013 9:09 am
by Kateryna Grynko

Hi Michael,

For test tab - get anew authorization code via star_login_service and paste it into request parameter currentorderService for the tab "Test".

Please note, if you specify it in service request parameters in Request tab then it will remain for all subsequent runs of the service.


put service

Posted: Mon Oct 28, 2013 11:23 am
by Michael4771079

Hi Katya,
I registered a new user and copied the new object id and session token, test was successful, 9dont understand what was wrong with id and token from previous user)

in tester still an error, here are the s/s

Image

Image