How to get ApplicationContentxt in umbraco library peoject
I am new for Umbraco.
I want to create my own Web API, so I have created one API project and added Library project and installed UmbacoCMS.Core to my library.
From library project I want to use Umbraco Content Services but I don't have application context in library project so I failed to use Umbraco Content Services.
Any one know how to fix it , Please help me as soon as possible.
I have installed Umbraco Web API in my Umbraco CMS project and it works fine
but my requirements are like:
I want to publish my data directly by using rest API ( where I can save data but not able to publish directly by using umbraco rest api)
so I want create my own customized Web API by so that I can use Umbraco Content Services and I can publish data directly or I can create my own json result format as per my requirements)
so I have create new c# WEB API project and installed Umbraco.Core to get access of umbraco content service.
but I dont know what next step I have to perform.
because my requirement is like
I want to create an individual application which can access my Umbraco CMS data so I can host CMS and API on different servers/domain
Because I want to use API as mid layer of my mobile app and online CMS.
I want to build architecture something like this.
Can you please guide me is it possible or not ?
if possible please let me know how I can make this possible.
How to get ApplicationContentxt in umbraco library peoject
I am new for Umbraco.
I want to create my own Web API, so I have created one API project and added Library project and installed UmbacoCMS.Core to my library.
From library project I want to use Umbraco Content Services but I don't have application context in library project so I failed to use Umbraco Content Services.
Any one know how to fix it , Please help me as soon as possible.
Hi Hardik
What API controllers are you using?
Try to use ApiControllers that are inherited from UmbracoApiController, have a look at documentation - https://our.umbraco.org/documentation/reference/routing/webapi/
/Alex
I have installed Umbraco Web API in my Umbraco CMS project and it works fine
but my requirements are like:
I want to publish my data directly by using rest API ( where I can save data but not able to publish directly by using umbraco rest api)
so I want create my own customized Web API by so that I can use Umbraco Content Services and I can publish data directly or I can create my own json result format as per my requirements)
so I have create new c# WEB API project and installed Umbraco.Core to get access of umbraco content service.
but I dont know what next step I have to perform.
because my requirement is like I want to create an individual application which can access my Umbraco CMS data so I can host CMS and API on different servers/domain
Because I want to use API as mid layer of my mobile app and online CMS.
I want to build architecture something like this.
Can you please guide me is it possible or not ?
if possible please let me know how I can make this possible.
I'm trying to do this too ...
Can't do it. Library won't have UmbracoApplicationBase overrided.
is working on a reply...