Report Service in .NET Aspire

1 Answer 14 Views
.NET Core Rest Service
Bill
Top achievements
Rank 1
Bill asked on 04 Apr 2024, 01:47 PM
Are there any examples of integrating the reporting web service in .NET Aspire? .NET Core 8 minimal api works fine in this framework but your reporting service project makes mvc api controllers.

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 09 Apr 2024, 08:50 AM

Hello Bill,

Indeed, the Reporting REST Service's API is controller-based. To implement it in the project, a controller class that inherits from the ReportsControllerBase class must be added and then the application should map the controller.

I am not too familiar with .NET Aspire application but if they can only work with minimal APIs, then the Reporting REST Service would not be implementable there. With that being said, it should still be possible to use the web report viewers by hosting the service in another project.

The ReportProcessor class should also be usable in the service project so it will be possible to render reports and return them as documents to the web application - Generating Reports Programmatically - Telerik Reporting. For example, you may create an endpoint in the minimal API service project that returns a report rendered into PDF and displays it in the Blazor web project via a PDF viewer - Blazor PDF Viewer Demos - Overview | Telerik UI for Blazor.

Please let me know if you have any additional questions. 

Regards,
Dimitar
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
.NET Core Rest Service
Asked by
Bill
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or