diff options
| author | transtrike <transtrike@gmail.com> | 2021-03-13 11:44:01 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-03-13 11:44:25 +0200 |
| commit | 93ded2b68a31fc9da643ac65955219e4f306ab82 (patch) | |
| tree | 9647a722d5974337f999da34b9a023114b0a9324 /src/Web/DevHive.Web/Controllers/ProfilePictureController.cs | |
| parent | 441f04790659a439c0054b7b06130d14cc2eb90b (diff) | |
| download | DevHive-93ded2b68a31fc9da643ac65955219e4f306ab82.tar DevHive-93ded2b68a31fc9da643ac65955219e4f306ab82.tar.gz DevHive-93ded2b68a31fc9da643ac65955219e4f306ab82.zip | |
XML Docs on all 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")] |
