diff options
| author | Victor S <57849063+transtrike@users.noreply.github.com> | 2021-03-13 11:47:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-13 11:47:26 +0200 |
| commit | 4add0831649f6e534d3883aa0e0e7f380d8042c7 (patch) | |
| tree | 9647a722d5974337f999da34b9a023114b0a9324 /src/Web/DevHive.Web/Controllers/ProfilePictureController.cs | |
| parent | 02cf05d6cc38e6907404f65976440b811d6cc60a (diff) | |
| parent | 93ded2b68a31fc9da643ac65955219e4f306ab82 (diff) | |
| download | DevHive-4add0831649f6e534d3883aa0e0e7f380d8042c7.tar DevHive-4add0831649f6e534d3883aa0e0e7f380d8042c7.tar.gz DevHive-4add0831649f6e534d3883aa0e0e7f380d8042c7.zip | |
Merge pull request #20 from Team-Kaleidoscope/nswag
XML Documentation on Controllers
Diffstat (limited to 'src/Web/DevHive.Web/Controllers/ProfilePictureController.cs')
| -rw-r--r-- | src/Web/DevHive.Web/Controllers/ProfilePictureController.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs b/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs index d3971ff..2eec99e 100644 --- a/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs +++ b/src/Web/DevHive.Web/Controllers/ProfilePictureController.cs @@ -1,16 +1,32 @@ using System; using System.Threading.Tasks; -using DevHive.Services.Models.User; using DevHive.Web.Models.User; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace DevHive.Web.Controllers { + /// <summary> + /// All endpoints for interacting with the profile picture layer + /// </summary> [ApiController] [Route("api/[controller]")] public class ProfilePictureController { + // private readonly ProfilePictureService _profilePictureService; + + // public ProfilePictureController(ProfilePictureService profilePictureService) + // { + // this._profilePictureService = profilePictureService; + // } + + /// <summary> + /// Alter the profile picture of a user + /// </summary> + /// <param name="userId">The user's Id</param> + /// <param name="updateProfilePictureWebModel">The new profile picture</param> + /// <param name="authorization">JWT Bearer Token</param> + /// <returns>???</returns> [HttpPut] [Route("ProfilePicture")] [Authorize(Roles = "User,Admin")] |
