added swagger doc for get avatar
parent
a70e2e32d0
commit
0cb59fa80d
|
@ -11,13 +11,17 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetAvatar(c *fiber.Ctx) error {
|
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
|
// summary: Get avatar from a user
|
||||||
// consumes:
|
// consumes:
|
||||||
// - application/json
|
// - application/json
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - 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:
|
// responses:
|
||||||
// '200':
|
// '200':
|
||||||
// description: Avatar from user
|
// description: Avatar from user
|
||||||
|
|
Loading…
Reference in New Issue