added swagger doc for get avatar

alpha
alex 2023-01-05 23:48:52 +01:00
parent a70e2e32d0
commit 0cb59fa80d
1 changed files with 5 additions and 1 deletions

View File

@ -11,13 +11,17 @@ import (
)
func GetAvatar(c *fiber.Ctx) error {
// swagger:operation GET /avatars/:userId/:fileName?size= user userGetAvatar
// swagger:operation GET /avatars/:userId/:fileName user userGetAvatar
// ---
// summary: Get avatar from a user
// consumes:
// - application/json
// produces:
// - application/json
// parameters:
// - name: size
// in: query
// description: Size can be specified as query to influence the size of the image. Available sizes https://git.clickandjoin.umbach.dev/ClickandJoin/StorageServer/src/branch/alpha/modules/image/image.go#L28
// responses:
// '200':
// description: Avatar from user