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
I want to create a MVC Umbraco Rest Api using package "Install-Package UmbracoCms.RestApi" without installing UmbracoCms package.
I want to host umbraco service using class Umbraco.Web.WebApi.UmbracoApiController.
Is there any example out for this?
Hi Nekesh,
You can't use UmbracoCms.RestApi without UmbracoCms definitely.
If you need to use 'UmbracoApiController' - just install UmbracoCms, this class there out of the box.
Cheers, Alex
I wrote an article in 24days.in/umbraco series last year and included a simple proof on concept using API in current version.
Feel free to check it and use / adopt into your project: http://24days.in/umbraco/2015/umbraco-rest-api/
Playground with code is on my GitHub: https://github.com/mzajkowski/umbraco-rest-api-playground
Let me know if it helped you :)
Alex.. UmbracoCms worked for me.
However, If we are installing CMS then how can we create a standalone Umbraco API just like REST services?
Any help will be helpful.
Do you mean you don't need Umbraco context? Umbraco CMS? Only REST ?
I didn't understand why you can't use usual WebAPI if you don't need Umbraco )
Thanks, Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Is there any example for creating Umbraco Rest Api?
I want to create a MVC Umbraco Rest Api using package "Install-Package UmbracoCms.RestApi" without installing UmbracoCms package.
I want to host umbraco service using class Umbraco.Web.WebApi.UmbracoApiController.
Is there any example out for this?
Hi Nekesh,
You can't use UmbracoCms.RestApi without UmbracoCms definitely.
If you need to use 'UmbracoApiController' - just install UmbracoCms, this class there out of the box.
Cheers, Alex
I wrote an article in 24days.in/umbraco series last year and included a simple proof on concept using API in current version.
Feel free to check it and use / adopt into your project: http://24days.in/umbraco/2015/umbraco-rest-api/
Playground with code is on my GitHub: https://github.com/mzajkowski/umbraco-rest-api-playground
Let me know if it helped you :)
Alex.. UmbracoCms worked for me.
However, If we are installing CMS then how can we create a standalone Umbraco API just like REST services?
Any help will be helpful.
Hi Nekesh,
Do you mean you don't need Umbraco context? Umbraco CMS? Only REST ?
I didn't understand why you can't use usual WebAPI if you don't need Umbraco )
Thanks, Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.