Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In v13 there is no startup.cs file #5952

Merged
merged 5 commits into from
Mar 21, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions 13/umbraco-cms/reference/content-delivery-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ The Content Delivery API delivers headless capabilities built directly into Umbr

The Delivery API is an opt-in feature of Umbraco. It must be explicitly enabled through configuration before it can be utilized.

Umbraco projects started on version 11 or below also need to opt-in through code by [registering the delivery API dependencies](./#register-the-content-delivery-api-dependencies). Below you will find a description of how to do this.

For a fresh Umbraco installation you can proceed directly to the [Enable the Content Delivery API](./#enable-the-content-delivery-api) section.

{% embed url="https://www.youtube.com/watch?v=sh_AF-ZKJ28" %}
Video tutorial
{% endembed %}

### Register the Content Delivery API dependencies

{% hint style="info" %}
This step is only applicable for Umbraco projects started on version 11 or below.
{% endhint %}
<details>
<summary>For version 12 or below ONLY - Register the Content Delivery API dependencies</summary>
marcemarc marked this conversation as resolved.
Show resolved Hide resolved

1. Open your project's `Startup.cs` file and locate the `ConfigureServices` method.
2. Register the API dependencies by adding `.AddDeliveryApi()`:
Expand All @@ -40,6 +33,10 @@ public void ConfigureServices(IServiceCollection services)
}
```

In version 13 and above this step is done for you in the program.cs file.
marcemarc marked this conversation as resolved.
Show resolved Hide resolved

</details>

### Enable the Content Delivery API

1. Open your project's `appsettings.json`.
Expand Down
Loading