Skip to main content
A newer version of this page is available. .
All docs
V22.1

Create a New Application with the Web API

This topic contains step-by-step instructions on how to create an application with the Web API. For more information on the Web API, see the following topic: Backend Web API Service.

  1. Create a new solution in Visual Studio. Select the DevExpress v22.1 XAF Template Gallery project template and click Next.

    Create a new project from the XAF Template Gallery

  2. Specify the name and location of the new project (solution), and click Create.

  3. Ensure that the .NET Core platform is selected and run the XAF Solution Wizard.

    Tutorial launch Wizard

  4. In the Solution Wizard, select Service (ASP.NET Core Web API) and other platforms that you wish to add to the solution.

    Select Web (ASP.NET Core Blazor)

  5. Select the eXpress Persistent Objects or Entity Framework Core ORM for your application and click Next.

    Select ORM

  6. Choose the security options for your application.

    Select authentication

    See the following topic for details: Authentication in Web API projects.

    If you selected ASP.NET Core Blazor on the Choose Target Platforms page, you can also specify if the Web API service should be added as a separate project or integrated into Blazor application project:

    Select authentication

  7. Create endpoints and test the Web API.

See Also