Reporting Rest Service

1 Answer 136 Views
Rest Service
Robert
Top achievements
Rank 1
Iron
Robert asked on 26 Feb 2024, 04:44 PM

Hi,

https://www.telerik.com/blogs/telerik-reporting-modern-ui-report-viewer-demo

I have followed the steps in this example and created a Reporting rest service and added the report viewer to my Blazor app. The rest service is running and I can display a report in the viewer.

I'm struggling though to retrieve the list of reports for the drop down list.  Should the rest service provide a list of files available from the endpoint "files" ?

ReportList = await HttpClient.GetFromJsonAsync<List<string>>("/api/files");

I'm currenly get a 404 error in the on intialazied  method.

Thanks

Rob

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Momchil
Telerik team
answered on 29 Feb 2024, 12:18 PM

Hello Robert,

The "/api/files" endpoint is a custom endpoint created for the blog post demo and it is not part of the official Reporting REST API.

You can find the implementation of this endpoint in the source code of the demo.

Post03/src/TBACS.BlazorGridCustomStyle/Server/Controllers/FilesController.cs

I hope this helps.

Best Regards,
Momchil
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
Rest Service
Asked by
Robert
Top achievements
Rank 1
Iron
Answers by
Momchil
Telerik team
Share this question
or