- Create a new ASP.NET Core Api project.
- Install NuGet-package:
RapidCMS.Api.WebApi
. - Remove all code from
ConfigureServices
inStartup.cs
and add the following block of code:
services.AddRapidCMSWebApi(config => { config.AllowAnonymousUser(); });
services.AddRapidCMSControllers();
- Hit
F5
: you're now running a completely empty RapidCMS companion Api instance. - Start building your CMS Api by expanding
config => {}
. Explore the example API to get a sense on how to build such Api and get it working with your RapidCMS WebAssembly instance.
- Create a new .NET 5.0 Azure Functions project (
dotnet-isolated
-- see this repo). - Install NuGet-package:
RapidCMS.Api.Functions
(preview). - Add the following block of code to
ConfigureServices
inProgram.cs
:
services.AddRapidCMSFunctions(config => { config.AllowAnonymousUser(); });
- Run
func host start
from the Azure Function project root: you're now running a completely empty, serverless RapidCMS companion Api instance. - Start building your CMS Api by expanding
config => {}
. Explore the example Function API to get a sense on how to build such Api and get it working with your RapidCMS WebAssembly instance.