diff options
author | crupest <crupest@outlook.com> | 2020-08-21 21:25:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-21 21:25:33 +0800 |
commit | dcb0a10e1adaec24961f2484e7f9a9a1f1f5da15 (patch) | |
tree | 6183eac0575933a7d4b0bcd7ad771dafa06bf246 /Timeline/Controllers/UserAvatarController.cs | |
parent | 81f6ecd9685c5a6bae0da5050b5edfaf050167cc (diff) | |
download | timeline-dcb0a10e1adaec24961f2484e7f9a9a1f1f5da15.tar.gz timeline-dcb0a10e1adaec24961f2484e7f9a9a1f1f5da15.tar.bz2 timeline-dcb0a10e1adaec24961f2484e7f9a9a1f1f5da15.zip |
...
Diffstat (limited to 'Timeline/Controllers/UserAvatarController.cs')
-rw-r--r-- | Timeline/Controllers/UserAvatarController.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Timeline/Controllers/UserAvatarController.cs b/Timeline/Controllers/UserAvatarController.cs index 3d3bc983..52e87df2 100644 --- a/Timeline/Controllers/UserAvatarController.cs +++ b/Timeline/Controllers/UserAvatarController.cs @@ -42,9 +42,7 @@ namespace Timeline.Controllers /// </summary>
/// <param name="username">Username of the user to get avatar of.</param>
/// <param name="ifNoneMatch">If-None-Match header.</param>
- /// <response code="200">Succeeded to get the avatar.</response>
- /// <response code="304">The avatar does not change.</response>
- /// <response code="404">The user does not exist.</response>
+ /// <returns>Avatar data.</returns>
[HttpGet("users/{username}/avatar")]
[ProducesResponseType(typeof(byte[]), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status304NotModified)]
@@ -74,10 +72,6 @@ namespace Timeline.Controllers /// Set avatar of a user. You have to be administrator to change other's.
/// </summary>
/// <param name="username">Username of the user to set avatar of.</param>
- /// <response code="200">Succeeded to set avatar.</response>
- /// <response code="400">Error code is 10010001 if user does not exist. Or avatar is of bad format.</response>
- /// <response code="401">You have not logged in.</response>
- /// <response code="403">You are not administrator.</response>
[HttpPut("users/{username}/avatar")]
[Authorize]
[RequireContentType, RequireContentLength]
|