A 1-Click Solution for CRUD Web API with Role-based Access Control via EF Core & ASP.NET

Learn how to create an ASP.NET Core Web API to expose your app data and control user access with dynamic roles and permissions (powered by Entity Framework Core ORM). Our Solution Wizard scaffolds an OData v4 Web API Service (.NET 6) with integrated authorization & CRUD operations. The built-in security system also filters out secured server data based on permissions granted to users. You can use OAuth2, JWT or custom strategies for authentication alongside tools like Postman or Swagger (OpenAPI) for API testing. These basic capabilities of our Web API Service are available free-of-charge - register your free copy today at https://www.devexpress.com/security-api-free/.

⏱ Timeline ⏱
0:00 Intro
0:31 Register our Free Offer
1:12 Download the Solution Wizard installation
1:25 Run through the installer
2:10 Create a new project in Visual Studio 2022
2:35 Review ORM and authentication options in the Solution Wizard
3:52 Review auto-generated Web API Service project files
6:45 Declare your EF Core entity / data model
7:15 Link the current security user to your entity
7:40 Configure users, roles and data access permissions in database
8:43 Run the app and authenticate the Editor user in Swagger UI
9:16 Test the POST request to create a new data record
9:50 Test the PATCH request to modify an existing record
10:12 Test the GET request to access the updated record
10:33 Test the OData $expand query parameter with `curl` to access related record data
11:28 Test the Viewer user with limited READ access to data
12:25 Test the DELETE permissions for the Viewer user

⚡️⚡️⚡️ Overview ⚡️⚡️⚡️
https://www.devexpress.com/products/net/application_framework/security-web-api-service.xml

📒 Documentation 📒
https://docs.devexpress.com/eXpressAppFramework/403394/backend-web-api-service

🚀 Get Started Today – Free 30 Day Trial 🚀
http://dxpr.es/NUGET
http://dxpr.es/FREE-TRIAL

✅ Pricing and Online Demos ✅
http://dxpr.es/BUY
http://dxpr.es/DEMOS

🆘 We Are Here to Help 🆘
http://dxpr.es/SUPPORT

👍 Follow DevExpress on Social Media 👍
http://dxpr.es/FACEBOOK
http://dxpr.es/TWITTER
http://dxpr.es/BLOGS

🏁 Review Customer Testimonials 🏁
http://dxpr.es/TESTIMONIALS
http://dxpr.es/MARKETPLACE

#DevExpress, #devexpress_xaf, #entityframework #devexpress_desktop, #devexpress_blazor #devexpress_web #aspnetcore #aspnet #webapi #blazor #rbac #api #efcore

Home