2

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!!

John
  • 29,788
  • 18
  • 89
  • 130
Primico
  • 2,143
  • 3
  • 24
  • 36
  • are you just wanting to create an API for querying umbraco content? have to read this? https://our.umbraco.org/documentation/reference/routing/webapi/ – nologo Oct 09 '17 at 04:58

2 Answers2

3

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.

harvzor
  • 2,832
  • 1
  • 22
  • 40
0

You are correct, Umbraco 8 requires 4.7 .net Framework rather than .net core.

If you want to self-host you can extend Umbraco 8 with either GraphQL or Head Rest Packages however these are not recently updated.

Alternatively, Umbraco offers Heart Core which is cloud only headless CMS which would work. This has a reset API and soon a Graph QL.

John
  • 29,788
  • 18
  • 89
  • 130