files

package
v0.0.0-...-c76d545 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFile

func FindFile(c *gin.Context)

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

func FindFiles(c *gin.Context)

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

func ProcessFile(c *gin.Context)

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

func UploadFile(c *gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL