Create a Standalone Web API Application
- 2 minutes to read
This topic contains step-by-step instructions on how to create an application with Web API. For more information on Web API, see the following topic: Backend Web API Service.
Create a new project in Visual Studio. Select DevExpress v25.1 Template Kit and click Next.
Specify the project name and location and click Create.
In the invoked Template Kit window, select XAF.
The XAF window contains a list of XAF application settings. In the Blazor / Web API Service Options section, specify the Web API Service integration style:
- Standalone (Separate Projects) creates a separate Web API Service project.
- Integrated (Single Project) integrates Web API Service to the ASP.NET Core Blazor project.
Customize other options, if necessary: choose the security options for your application, select additional modules, and so on.
Click Create Project
This step only applies if you used the “Sha512” algorithm to encrypt passwords in your existing XAF application and want to reuse the same database. In such instances, set the PasswordCryptographer.SupportLegacySha512 property to
true
for backward compatibility.File: MySolution.WebApi\Startup.cs
public class Startup { // ... public void ConfigureServices(IServiceCollection services) { // ... PasswordCryptographer.SupportLegacySha512 = true; // ... } }