Add Custom Web API Endpoints To Check Permissions & Query Media Data in .NET MAUI Apps with EF Core

Опубликовано: 11 Октябрь 2022
на канале: DevExpress
3,669
28

In this video (Part 4), we will review the previously created XAF Web API Service and .NET MAUI mobile apps, and extend them with additional UI-related functionality:
modify the Add button behavior based on user role permissions;
add the Photo editor to the mobile form based on the media data retrieved from the secure data service.
For both scenarios, we will extend our Web API Service with custom endpoints that will respect security rights for different user roles. These basic capabilities of our Web API Service are available free-of-charge - register your free copy today at https://www.devexpress.com/security-a.... Check out the related videos:

Part 1:    • A 1-Click Solution for CRUD Web API w...   (Web API Service Overview)
Part 2:    • Manage Web API Role-based CRUD Permis...   (XAF Desktop/Blazor Admin UI)
Part 3:    • Authenticate Users & Authorize CRUD O...   (Authorize CRUD Operations in .NET MAUI)
Part 4: This video (to download a runnable sample, please contact us at https://devexpress.com/ask)
Part 5:    • Preview Reports as PDF in .NET MAUI A...   (Preview Reports from Web API in .NET MAUI)

⏱ Timeline ⏱
0:00 Introduction: Declare implementation plan.
0:27 Visualize the Add button in the .NET MAUI app that will use the Web API.
0:57 Check out online documentation on how to use the security system in a Web API controller.
1:16 Create a Web API controller and endpoint to return security user permissions.
2:16 Declare the Web API UserCanCreatePost method in the .NET MAUI data service
2:23 Implement the Web API UserCanCreatePost method in WebAPIService of the .NET MAUI app.
3:08 Connect the Web API Service with the .NET MAUI AddItemCommand.
3:56 Test the new endpoint with both Viewer and Editor users from the .NET MAUI app.
4:38 Add the Photo property to the user type based on the online documentation.
5:35 Add images to the database using the XAF Blazor app UI.
6:12 Implement the GetAuthorPhoto endpoint in the Web API project.
7:34 Use the XAF Blazor app UI to add permissions to the MediaDataObject type.
8:15 Implement the GetAuthorPhotoAsync method in WebAPIService of the .NET MAUI app.
8:49 Retrieve image bytes in the .NET MAUI app to display Author photo.
9:29 Test the Photo editor in the Author form of the .NET MAUI app.
9:56 Add the Archive button in the .NET MAUI app.
10:20 Implement the ArchiveCommand in the .NET MAUI app.
11:10 Implement the Archive Web API endpoint.
12:00 Test the Archive Web API endpoint with the .NET MAUI app.

⚡️⚡️⚡️ Overview ⚡️⚡️⚡️
1. https://www.devexpress.com/products/n...
2. https://www.devexpress.com/maui/
3. https://marketplace.visualstudio.com/...

📒 Documentation 📒
1. Example sources: https://www.devexpress.com/go/XAF_Sec...
2. https://docs.devexpress.com/eXpressAp...
3. https://docs.devexpress.com/eXpressAp...
4. FAQ: https://www.devexpress.com/kb=t886740
5. https://docs.devexpress.com/MAUI/4032...

⚡️ XAF's Community, Consulting & Training ⚡️
https://dxpr.es/XAF-COMMUNITY
https://dxpr.es/XAF-TRAINING

🚀 Obtain Your Free License Today 🚀
https://dxpr.es/FREE-MOBILE-CONTROLS

✅ 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 #devexpress_maui #devexpress_mobile #aspnetcore #MAUI #aspnet #webapi #blazor #rbac #api #efcore #entityframework #mobiledevelopment


Смотрите видео Add Custom Web API Endpoints To Check Permissions & Query Media Data in .NET MAUI Apps with EF Core онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DevExpress 11 Октябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,669 раз и оно понравилось 28 людям.