added swagger doc for get avatar
parent
a70e2e32d0
commit
0cb59fa80d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue