Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
DownloadFile godoc @Summary Download file @Description Download file by uploader and filename you can get from listFile endpoint so there is no need test this endpoint just click on the link provided by listFile endpoint if using postman @Tags File @Accept json @Produce json @Param uploader query string true "Uploader" @Param filename query string true "Filename" @Success 200 {object} models.File @Router /download [get]
func ListFile ¶
ListFile godoc @Summary List file @Description List file @Tags File @Param Authorization header string true "Authorization. How to input in swagger : 'Bearer <insert_your_token_here>'" @Accept json @Security BearerToken @Produce json @Success 200 {object} ListFileOutput @Router /file/list [get]
func Login ¶
Login godoc @Summary Login @Description Login @Tags User @Accept json @Produce json @Param user body models.User true "User" @Success 200 {object} models.User @Router /login [post]
func UploadFile ¶
UploadFile godoc @Summary Upload file @Description Upload file @Tags File @Param Authorization header string true "Authorization. How to input in swagger : 'Bearer <insert_your_token_here>'" @Accept json @Security BearerToken @Produce json @Param file formData file true "File" @Success 200 {object} models.File @Router /file/upload [post]