diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-21 12:38:59 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-04-21 23:57:49 +0300 |
| commit | 568e77f6d9c5d5a34879901f12ee189ade218c7d (patch) | |
| tree | 3681088bd479d8bc5657179f95caf6b7824acc94 /backend/controllers/userController.go | |
| parent | doc: readme (diff) | |
| download | lphub-568e77f6d9c5d5a34879901f12ee189ade218c7d.tar.gz lphub-568e77f6d9c5d5a34879901f12ee189ade218c7d.tar.bz2 lphub-568e77f6d9c5d5a34879901f12ee189ade218c7d.zip | |
doc: added tags
Diffstat (limited to 'backend/controllers/userController.go')
| -rw-r--r-- | backend/controllers/userController.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/controllers/userController.go b/backend/controllers/userController.go index 51c18d5..c86a739 100644 --- a/backend/controllers/userController.go +++ b/backend/controllers/userController.go | |||
| @@ -14,6 +14,7 @@ import ( | |||
| 14 | // GET Profile | 14 | // GET Profile |
| 15 | // | 15 | // |
| 16 | // @Summary Get profile page of session user. | 16 | // @Summary Get profile page of session user. |
| 17 | // @Tags users | ||
| 17 | // @Accept json | 18 | // @Accept json |
| 18 | // @Produce json | 19 | // @Produce json |
| 19 | // @Param Authorization header string true "JWT Token" | 20 | // @Param Authorization header string true "JWT Token" |
| @@ -100,6 +101,7 @@ func Profile(c *gin.Context) { | |||
| 100 | // GET User | 101 | // GET User |
| 101 | // | 102 | // |
| 102 | // @Summary Get profile page of another user. | 103 | // @Summary Get profile page of another user. |
| 104 | // @Tags users | ||
| 103 | // @Accept json | 105 | // @Accept json |
| 104 | // @Produce json | 106 | // @Produce json |
| 105 | // @Param id path int true "User ID" | 107 | // @Param id path int true "User ID" |
| @@ -201,6 +203,7 @@ func FetchUser(c *gin.Context) { | |||
| 201 | // PUT Profile | 203 | // PUT Profile |
| 202 | // | 204 | // |
| 203 | // @Summary Update profile page of session user. | 205 | // @Summary Update profile page of session user. |
| 206 | // @Tags users | ||
| 204 | // @Accept json | 207 | // @Accept json |
| 205 | // @Produce json | 208 | // @Produce json |
| 206 | // @Param Authorization header string true "JWT Token" | 209 | // @Param Authorization header string true "JWT Token" |
| @@ -243,6 +246,7 @@ func UpdateUser(c *gin.Context) { | |||
| 243 | // PUT Profile/CountryCode | 246 | // PUT Profile/CountryCode |
| 244 | // | 247 | // |
| 245 | // @Summary Update country code of session user. | 248 | // @Summary Update country code of session user. |
| 249 | // @Tags users | ||
| 246 | // @Accept json | 250 | // @Accept json |
| 247 | // @Produce json | 251 | // @Produce json |
| 248 | // @Param Authorization header string true "JWT Token" | 252 | // @Param Authorization header string true "JWT Token" |