Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hardik Mehta 12 posts 83 karma points
    Feb 23, 2018 @ 05:58
    Hardik Mehta
    0

    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.

  • Alex Skrypnyk 6131 posts 23950 karma points MVP 7x admin c-trib
    Feb 23, 2018 @ 08:09
    Alex Skrypnyk
    0

    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

  • Hardik Mehta 12 posts 83 karma points
    Feb 26, 2018 @ 07:40
    Hardik Mehta
    0

    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.

    enter image description here

    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.

  • Maxime Besson 2 posts 72 karma points
    Nov 05, 2018 @ 17:20
    Maxime Besson
    0

    I'm trying to do this too ...

    Can't do it. Library won't have UmbracoApplicationBase overrided.

Please Sign in or register to post replies

Write your reply to:

Draft