Quick start guide: C# ASP.NET
Use these guides to quickly connect a C# ASP.NET Core application to Optimizely Graph and retrieve Content Management System (CMS) content through a Web API.
Choose an approach based on your project needs.
- Build an ASP.NET Core API (manual GraphQL client) – A lightweight configuration with minimal tooling and full control over your GraphQL queries and response models. Ideal for small projects, prototypes, or learning how GraphQL requests work.
- Build an ASP.NET Core API using StrawberryShake (recommended) – A production-ready integration with strongly typed queries, automatic client generation, and compile-time validation. Reduces manual mapping code and improves maintainability for larger applications.
Prerequisites
No matter which approach you choose, ensure you complete the following:
- Install the .NET 8 SDK.
- Verify you have access to an Optimizely Graph endpoint.
- Obtain a valid Graph authentication URL.
Updated 11 days ago
