fix(image): getter and setter OpenAPI annotations
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
c45ad112a2
commit
9cb3ecfd7d
|
@ -267,7 +267,7 @@ func checkProjectBackgroundRights(s *xorm.Session, c echo.Context) (project *mod
|
|||
// @Produce octet-stream
|
||||
// @Param id path int true "Project ID"
|
||||
// @Security JWTKeyAuth
|
||||
// @Success 200 {} string "The project background file."
|
||||
// @Success 200 {file} blob "The project background file."
|
||||
// @Failure 403 {object} models.Message "No access to this project."
|
||||
// @Failure 404 {object} models.Message "The project does not exist."
|
||||
// @Failure 500 {object} models.Message "Internal error"
|
||||
|
|
|
@ -49,7 +49,7 @@ func unsplashImage(url string, c echo.Context) error {
|
|||
// @Produce octet-stream
|
||||
// @Param image path int true "Unsplash Image ID"
|
||||
// @Security JWTKeyAuth
|
||||
// @Success 200 {} string "The image"
|
||||
// @Success 200 {file} blob "The image"
|
||||
// @Failure 404 {object} models.Message "The image does not exist."
|
||||
// @Failure 500 {object} models.Message "Internal error"
|
||||
// @Router /backgrounds/unsplash/image/{image} [get]
|
||||
|
@ -69,7 +69,7 @@ func ProxyUnsplashImage(c echo.Context) error {
|
|||
// @Produce octet-stream
|
||||
// @Param image path int true "Unsplash Image ID"
|
||||
// @Security JWTKeyAuth
|
||||
// @Success 200 {} string "The thumbnail"
|
||||
// @Success 200 {file} blob "The thumbnail"
|
||||
// @Failure 404 {object} models.Message "The image does not exist."
|
||||
// @Failure 500 {object} models.Message "Internal error"
|
||||
// @Router /backgrounds/unsplash/image/{image}/thumb [get]
|
||||
|
|
|
@ -51,7 +51,7 @@ import (
|
|||
// @Produce octet-stream
|
||||
// @Param username path string true "The username of the user who's avatar you want to get"
|
||||
// @Param size query int false "The size of the avatar you want to get. If bigger than the max configured size this will be adjusted to the maximum size."
|
||||
// @Success 200 {} blob "The avatar"
|
||||
// @Success 200 {file} blob "The avatar"
|
||||
// @Failure 404 {object} models.Message "The user does not exist."
|
||||
// @Failure 500 {object} models.Message "Internal error"
|
||||
// @Router /{username}/avatar [get]
|
||||
|
|
|
@ -116,7 +116,7 @@ func UploadTaskAttachment(c echo.Context) error {
|
|||
// @Param id path int true "Task ID"
|
||||
// @Param attachmentID path int true "Attachment ID"
|
||||
// @Security JWTKeyAuth
|
||||
// @Success 200 {} string "The attachment file."
|
||||
// @Success 200 {file} blob "The attachment file."
|
||||
// @Failure 403 {object} models.Message "No access to this task."
|
||||
// @Failure 404 {object} models.Message "The task does not exist."
|
||||
// @Failure 500 {object} models.Message "Internal error"
|
||||
|
|
Loading…
Reference in New Issue