Sample .NET Core Razor Pages project using the Kontent.ai Delivery .NET SDK to retrieve content.
This application is meant for use with the Dancing Goat sample project within Kontent.ai. The project contains the home page and article content for Dancing Goat – an imaginary chain of coffee shops. If you don't have your own Sample Project, any administrator of a Kontent.ai subscription can generate one.
To run the app:
If you already have a Kontent.ai account, you can connect this sample Razor Pages application to your version of the Sample project.
\sample-app-razorpages\appsettings.json
file.Use the values from your Kontent.ai project in the appsettings.json
file:
ProjectId
application setting. {
"DeliveryOptions": {
"ProjectId": "<your Kontent.ai project ID>"
},
}
Learn more about content editing with Kontent.ai.
You can retrieve content either through the Kontent.ai Delivery SDK or the Kontent.ai Delivery API.