[RESOLVED]how can I build anew project and make use of another web api's project

I want to build a project where I have to display data only for a 3rd party user or mobile apps.I already built my MVC 5 project with the web API’s .now I want to make use of these web API’s in a separate project.The web Api’s return json data in a
browser so I want to consume these API’s to display this data but not as json but as real data (Images. news, …)

lolo512

want to consume these API’s to display this data but not as json but as real data (Images. news, …)

the return is json by default. You can have bson – but not from javascript.

See HttpClient for accessing webAPI

azure supports wcf cloud services to expose your custom api methods to your applications.

http://azure.microsoft.com/en-us/services/cloud-services/

So in short, you create a new cloud service project and add a wcf worker role and go from there on exposing the apis.

http://azure.microsoft.com/en-us/documentation/services/cloud-services/

https://code.msdn.microsoft.com/windowsazure/CSAzureWCFServices-20c7d9c5

Hi,

json is just a notation and you’ll recreate objects from this on the JavaScript side (I assume news have some strings properties and images are exposed using their location?)

Try

http://www.codeproject.com/Articles/424461/Implementing-Consuming-ASP-NET-WEB-API-from-JQuery

Else you’ll get better help if you try something and tell us what is the first blocking point you are running into…

Leave a Reply