Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFile ¶
FindFile godoc @Summary Find file by ID @Description Get details of a file by its ID @Tags Files @Security JwtAuth @Accept json @Produce json @Param id path string true "File ID" @Success 200 {object} models.File "Successfully retrieved file" @Failure 404 {string} string "File not found" @Router /files/{id} [get]
func FindFiles ¶
FindFiles godoc @Summary Get all files with pagination @Description Get a list of all files with optional pagination @Tags Files @Security JwtAuth @Accept json @Produce json @Param offset query int false "Offset for pagination" default(0) @Param limit query int false "Limit for pagination" default(10) @Success 200 {array} models.File "Successfully retrieved list of files" @Router /files [get]
func ProcessFile ¶
ProcessFile godoc @Summary Process a file @Description @Tags Files @Security JwtAuth @Accept json @Produce json @Param input body models.ProcessFile true "Upload file" @Success 201 {object} models.File "Successfully processed file" @Failure 400 {string} string "Bad Request" @Failure 401 {string} string "Unauthorized" @Router /files/process [post]
func UploadFile ¶
UploadFile godoc @Summary Upload a new file @Description @Tags Files @Security JwtAuth @Accept json @Produce json @Param input body models.UploadFile true "Upload file" @Success 201 {object} models.File "Successfully created file" @Failure 400 {string} string "Bad Request" @Failure 401 {string} string "Unauthorized" @Router /files/upload [post]
Types ¶
This section is empty.