RSCG_WebAPIExports 2023.8.16.1958
dotnet add package RSCG_WebAPIExports --version 2023.8.16.1958
NuGet\Install-Package RSCG_WebAPIExports -Version 2023.8.16.1958
<PackageReference Include="RSCG_WebAPIExports" Version="2023.8.16.1958" />
paket add RSCG_WebAPIExports --version 2023.8.16.1958
#r "nuget: RSCG_WebAPIExports, 2023.8.16.1958"
// Install RSCG_WebAPIExports as a Cake Addin #addin nuget:?package=RSCG_WebAPIExports&version=2023.8.16.1958 // Install RSCG_WebAPIExports as a Cake Tool #tool nuget:?package=RSCG_WebAPIExports&version=2023.8.16.1958
RSCG_WebAPIExports
Add exports to file to WebAPI ( for the moment, just Excel / xlsx)
How to use in WebAPI project
Add reference to the package in the .csproj
<PackageReference Include="RSCG_WebAPIExports" Version="2023.8.16.1958" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
or
<PackageReference Include="RSCG_WebAPIExports" Version="2023.8.16.1958" OutputItemType="Analyzer" ReferenceOutputAssembly="true" />
Then in the WebAPI add
using WebApiExportToFile;
//code
// Add services to the container.
//WebApiExportToFile.AddExport(builder.Services);
builder.Services.AddExport();
var app = builder.Build();
app.UseExport();
Add to any url : .xlsx ( e.g.
for /WeatherForecast put /WeatherForecast.xlsx
for /WeatherForecast/GetPerson?id=23 put /WeatherForecast/GetPerson.xlsx?id=23
)
and the excel will be downloaded
Examples
JSON value type array: https://tiltwebapp.azurewebsites.net/api/PublicTILTs/PublicTiltsURL
Excel: https://tiltwebapp.azurewebsites.net/api/PublicTILTs/PublicTiltsURL.xlsx
JSON object array: https://tiltwebapp.azurewebsites.net/api/PublicTILTs/LatestTILTs/ignatandrei/10
Excel: https://tiltwebapp.azurewebsites.net/api/PublicTILTs/LatestTILTs/ignatandrei/10.xlsx
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- ArrayToExcel (>= 2.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2023.8.16.1958 | 397 | 8/16/2023 |
2023.8.16.1258 | 237 | 8/16/2023 |
2023.8.16.1257 | 252 | 8/16/2023 |
2023.8.16.1256 | 265 | 8/16/2023 |
2023.8.16.1255 | 252 | 8/16/2023 |
2023.8.16.1254 | 263 | 8/15/2023 |
2023.8.16.1219 | 276 | 8/15/2023 |