Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
What is the best way to call WebAPI using Umbraco7 ?
I find some references such as UmbracoAPIControllers, does it mean that all the actions exposed from UmbracoApiController will be like WebAPI methods?
If above understanding is true then what's the advantage of using UmbracoApiController , can we use normal ASP.NET WEB API from Umbraco?
As during research i find that all the actions exposed from UmbracoApiController will have umbraco keyword in the url, e.g. umbraco/api/partners/getpartners url structure.
"From" Umbraco -> some external WebAPI data source you can do what you like. Is that what you mean you want to bring data in rather than expose it?
The UmbracoAPIController is a thin layer built on top of WebAPI to let you expose data (I use if for AJAX and for syncing with CRM systems etc).
We use WebApi in Umbraco to pull data into the system. Granted the WebApi call only serves as an initialiser for some external web services that are used in conjunction with the content service to add information to the Umbraco site but it really depends on what you are looking to do. You can also restrict the Umbraco WebApi calls so that the only work from the back office (for use with Angular Js and custom dashboards) if you are worried about security.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted