Document file download responses in OpenAPI
This commit is contained in:
1 parent
3890ef139b
commit
cbe33d33f2
26 files changed
+55
No files matched your search
@@ -33,6 +33,7 @@ public sealed class BaseDataExcelController(AppDbContext db, IAppCache cache) :
|
||||
};
|
||||
|
||||
[HttpGet("{kind}/template")]
|
||||
[ProducesResponseType<FileContentResult>(StatusCodes.Status200OK, ExcelWorkbookHelper.ContentType)]
|
||||
public IActionResult DownloadTemplate(string kind)
|
||||
{
|
||||
if (!TryGetHeaders(kind, out var headers)) return NotFound();
|
||||
@@ -51,6 +52,7 @@ public sealed class BaseDataExcelController(AppDbContext db, IAppCache cache) :
|
||||
}
|
||||
|
||||
[HttpGet("{kind}/export")]
|
||||
[ProducesResponseType<FileContentResult>(StatusCodes.Status200OK, ExcelWorkbookHelper.ContentType)]
|
||||
public async Task<IActionResult> Export(
|
||||
string kind,
|
||||
CancellationToken cancellationToken,
|
||||
|
||||
Reference in new issue
Block a user