{"id":13629349,"url":"https://github.com/ignatandrei/RSCG_WebAPIExports","last_synced_at":"2025-04-17T09:33:23.054Z","repository":{"id":188510220,"uuid":"678881809","full_name":"ignatandrei/RSCG_WebAPIExports","owner":"ignatandrei","description":"Add exports to file to WebAPI ( for the moment, just Excel / xlsx)","archived":false,"fork":false,"pushed_at":"2025-03-10T18:53:17.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T13:16:18.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ignatandrei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-15T15:48:57.000Z","updated_at":"2025-03-10T18:53:21.000Z","dependencies_parsed_at":"2024-01-19T11:38:24.707Z","dependency_job_id":"119c16fd-383a-464a-83e2-ca79b1ca7ef3","html_url":"https://github.com/ignatandrei/RSCG_WebAPIExports","commit_stats":null,"previous_names":["ignatandrei/rscg_webapiexports"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_WebAPIExports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_WebAPIExports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_WebAPIExports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_WebAPIExports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ignatandrei","download_url":"https://codeload.github.com/ignatandrei/RSCG_WebAPIExports/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249270695,"owners_count":21241400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T22:01:08.223Z","updated_at":"2025-04-17T09:33:23.033Z","avatar_url":"https://github.com/ignatandrei.png","language":"C#","funding_links":[],"categories":["Content"],"sub_categories":["53. [RSCG_WebAPIExports](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_WebAPIExports) , in the [API](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) category"],"readme":"[![RSCG_WebAPIExports](https://img.shields.io/nuget/v/RSCG_WebAPIExports?label=RSCG_WebAPIExports)](https://www.nuget.org/packages/RSCG_WebAPIExports/)\n\n# RSCG_WebAPIExports\n\nAdd exports to file to WebAPI ( for the moment, just Excel / xlsx)\n\n\n\n## How to use in WebAPI project\n\n\nAdd reference to the package in the .csproj\n```xml\n\u003cPackageReference Include=\"RSCG_WebAPIExports\" Version=\"2025.8.310.2000\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"true\"  /\u003e\n\u003c!--\n\u003cPackageReference Include=\"RSCG_WebAPIExports\" Version=\"2025.8.310.2000\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"true\"  /\u003e\n\u003cPackageReference Include=\"ArrayToExcel\" Version=\"2.2.2\" /\u003e\n--\u003e\n```\nor\n```xml\n\u003cPackageReference Include=\"RSCG_WebAPIExports\" Version=\"2025.8.310.2000\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"true\"  /\u003e\n\u003c!--\n\u003cPackageReference Include=\"RSCG_WebAPIExports\" Version=\"2025.8.310.2000\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"true\"  /\u003e\n\u003cPackageReference Include=\"ArrayToExcel\" Version=\"2.2.2\" /\u003e\n--\u003e\n```\n\n\nThen in the WebAPI add\n```csharp\nusing WebApiExportToFile;\n//code\n// Add services to the container.\n//WebApiExportToFile.AddExport(builder.Services);\nbuilder.Services.AddExport();\nvar app = builder.Build();\napp.UseExport();\n\n```\n\nAdd to any url : .xlsx or .csv ( e.g. \n\nfor /WeatherForecast put /WeatherForecast.xlsx \n\nfor /WeatherForecast/GetPerson?id=23 put /WeatherForecast/GetPerson.xlsx?id=23\n\n) \n\nand the excel will be downloaded\n\n## Examples\n\nJSON value type array: \nhttps://tiltwebapp.azurewebsites.net/api/PublicTILTs/PublicTiltsURL\n\n\nExcel:\nhttps://tiltwebapp.azurewebsites.net/api/PublicTILTs/PublicTiltsURL.xlsx\n\n\nJSON object array:\nhttps://tiltwebapp.azurewebsites.net/api/PublicTILTs/LatestTILTs/ignatandrei/10\n\nExcel:\nhttps://tiltwebapp.azurewebsites.net/api/PublicTILTs/LatestTILTs/ignatandrei/10.xlsx","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2FRSCG_WebAPIExports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignatandrei%2FRSCG_WebAPIExports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2FRSCG_WebAPIExports/lists"}