Page 1 of 2

display data from rest api

Posted: Wed Aug 21, 2013 6:08 am
by Subbiah T

i want to get data from rest api(json) and display into app .how i ll do that


display data from rest api

Posted: Wed Aug 21, 2013 6:59 am
by Kateryna Grynko

Hi,

The applications can access existing APIs via Rest Services. You can use them to integrate with back-end cloud services that support a RESTful API.

Find tutorials that help to start here: http://docs.appery.io/tutorials
Documentation: http://docs.appery.io/documentation/#...


display data from rest api

Posted: Wed Aug 21, 2013 8:10 am
by Subbiah T

i followed this doc and tutorial only .i mapped reponse value to components but is not showing any thing after run apps


display data from rest api

Posted: Wed Aug 21, 2013 8:26 am
by Kateryna Grynko

Could you please attach a screen shot of your mapping and service settings?


display data from rest api

Posted: Wed Aug 21, 2013 10:21 am
by Subbiah T

Image Image
Image

i attached rest api service, testing response and mapping screenshot


display data from rest api

Posted: Wed Aug 21, 2013 10:47 am
by Kateryna Grynko

You get an array as a response so you would need to create a Grid component and drag your Labels into its cells, then map an array to the Grid Component as it's shown in our tutorial: http://docs.appery.io/tutorials/build... ('Adding and binding the list service to the page' section).


display data from rest api

Posted: Wed Aug 21, 2013 11:20 am
by Subbiah T

Image

Hi Katya,

Thanks for your quick reply. But the problem is that since last two days I and my team working hard with no result. Still I am not getting the proper solution. If it is possible, can we have a skype chat ? Please reply, I am waiting hear from you.


display data from rest api

Posted: Wed Aug 21, 2013 11:33 am
by Kateryna Grynko

Map an array to mobilelist_35 instead of mobilelistitem_36, then map task to mobilelistitem_36 Text field.


display data from rest api

Posted: Wed Aug 21, 2013 11:39 am
by Subbiah T

Image

i am not able to map wat u have described.its not taking map.


display data from rest api

Posted: Wed Aug 21, 2013 12:28 pm
by Kateryna Grynko

Yes, your results is not an array in Response description, but a nested structure. On the Test tab after the call click "Automatically Create Service Response".