This package creates an easy setup solution for making Umbraco headless. It comes with a wide range of extensibility options that can be tailored to your needs. Start using GraphQL to create your frontend today!
To get started, add the following to your Startup.cs .
Setup
using Nikcio.UHeadless.Extentions;
public void ConfigureServices(IServiceCollection services)
{
services.AddUmbraco(_env, _config)
/* Code obmitted for clarity */
.AddUHeadless()
/* Code obmitted for clarity */
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
/* Code obmitted for clarity */
app.UseUHeadlessGraphQLEndpoint();
app.UseUmbraco()
/* etc... */
}
Now your content will be avalible at /graphql
To get started try adding some content to the root and run the following query:
{
contentAtRoot {
nodes {
id,
name
}
}
}