Search code examples
c#asp.net-coreumbracoheadlessheadless-cms

Headless Umbraco CMS with ASP .NET Core


we have an ASP .NET Core website and would like to use Umbraco. It is my understanding there is no .Net Core version of Umbraco, therefore we would need to use a headless integration. To do this, I will need to create web api's in my project, however I am not able to use Umbraco.Web.WebApi, because there is no ASP .NET Core library, so I am assuming I need to custom create my own using the standard ASP .NET Web Api. If all these assumptions are correct, I have no idea how to begin. I was curious if there are any sample .NET Core projects that show how to create the Web Api? If these assumptions are not correct, could someone please help me better understand. Thanks!!


Solution

  • You can use the Umbraco.Web.WebApi.UmbracoApiController on your Umbraco project controllers, these would expose the information you need to run your Core app using a REST interface.

    Then, from your Core application, you need to make REST calls to your previously created Umbraco controllers. It seems like this SO post should get you on the way to making those calls.