diff options
author | crupest <crupest@outlook.com> | 2020-08-23 17:17:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-23 17:17:04 +0800 |
commit | 5a821a3e81dfc14c15c70d90e9266d3a163479a9 (patch) | |
tree | 321cf420480047bead290a6fea4c2433ea69b941 /Timeline/Controllers/TimelineController.cs | |
parent | 69a353e61b6c5a986ed01e5dc01ad0248211b481 (diff) | |
download | timeline-5a821a3e81dfc14c15c70d90e9266d3a163479a9.tar.gz timeline-5a821a3e81dfc14c15c70d90e9266d3a163479a9.tar.bz2 timeline-5a821a3e81dfc14c15c70d90e9266d3a163479a9.zip |
Add produces and consumes .
Diffstat (limited to 'Timeline/Controllers/TimelineController.cs')
-rw-r--r-- | Timeline/Controllers/TimelineController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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 /// <param name="ifNoneMatch">If-None-Match header.</param>
/// <returns>The data.</returns>
[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)]
|