From b1b10b7dda86138d020b1545b4de55b37ee793b3 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 23 Aug 2020 17:17:04 +0800 Subject: Add produces and consumes . --- Timeline/Controllers/TimelineController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Timeline/Controllers/TimelineController.cs') diff --git a/Timeline/Controllers/TimelineController.cs b/Timeline/Controllers/TimelineController.cs index 43178ac6..90b50bbb 100644 --- a/Timeline/Controllers/TimelineController.cs +++ b/Timeline/Controllers/TimelineController.cs @@ -199,7 +199,8 @@ namespace Timeline.Controllers /// If-None-Match header. /// The data. [HttpGet("timelines/{name}/posts/{id}/data")] - [ProducesResponseType(StatusCodes.Status200OK)] + [Produces("image/png", "image/jpeg", "image/gif", "image/webp", "application/json", "text/json")] + [ProducesResponseType(typeof(byte[]), StatusCodes.Status200OK)] [ProducesResponseType(typeof(void), StatusCodes.Status304NotModified)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status403Forbidden)] -- cgit v1.2.3