Search code examples
javascriptc#jsonappceleratorappcelerator-mobile

C# Api to Appcelerator app in Javascript


I have made a very simple Web API in C# which does all the functionality required and have also made a simple User Interface in Appcelerator (Java Script). My task is to connect these two together so the app has the functionality of the API. I believe I must use JSON to communicate between C# and Java Script but I'm not sure how to do this.

Can anyone help or point me to the right direction?

Thank you


Solution

  • You can write your own API implementation in javascript that talks to your restful service via http calls.

    Also, I recommend taking a look at this project here: https://github.com/viezel/napp.alloy.adapter.restapi which can save you a lot of time doing so.