diff options
author | crupest <crupest@outlook.com> | 2020-08-23 18:15:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-23 18:15:25 +0800 |
commit | a9edf94e42e5288c0d46994546eef6a507768fcf (patch) | |
tree | 7edfeca01b33e2bff98f10148b371d473e73a299 /Timeline/Controllers/TimelineController.cs | |
parent | c28848a35b0f31a59f9d02641571495822ad0db8 (diff) | |
parent | b1b10b7dda86138d020b1545b4de55b37ee793b3 (diff) | |
download | timeline-a9edf94e42e5288c0d46994546eef6a507768fcf.tar.gz timeline-a9edf94e42e5288c0d46994546eef6a507768fcf.tar.bz2 timeline-a9edf94e42e5288c0d46994546eef6a507768fcf.zip |
Merge pull request #150 from crupest/swagger
Enhance swagger docs.
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)]
|