What is the correct way to download a file via the NSwag Code Generator (angular 2 typescript)
问题 I try to download a file via an angular 2 typescript client. The link generated in Swagger UI works fine, but the generated typescript client does not. The controller looks like this: [HttpGet("export")] [SwaggerResponse((int) HttpStatusCode.OK, Type = typeof(FileContentResult))] [ProducesResponseType(typeof(FileResult), (int) HttpStatusCode.OK)] [Produces("text/csv")] public virtual FileResult Export(int Id, string fileType, CsvFormat format, bool includeHeader) { . . . FileStreamResult file