Documentation ¶
Index ¶
- func AddLike(c *fiber.Ctx, likeService services.LikeService) error
- func GetComments(c *fiber.Ctx, commentService services.CommentService) error
- func GetLikes(c *fiber.Ctx, likeService services.LikeService) error
- func GetVideos(c *fiber.Ctx, videoService services.VideoService) error
- func LoginUser(c *fiber.Ctx, userService services.UserService) error
- func PostComment(c *fiber.Ctx, commentService services.CommentService) error
- func RegisterUser(c *fiber.Ctx, userService services.UserService) error
- func UploadVideo(c *fiber.Ctx, videoService services.VideoService) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLike ¶
func AddLike(c *fiber.Ctx, likeService services.LikeService) error
AddLike adds a like to a video. @Summary Add a like to a video @Description Like a video by a user @Tags likes @Accept json @Produce json @Param like body models.Like required "Like Details" @Router /likes [post]
func GetComments ¶
func GetComments(c *fiber.Ctx, commentService services.CommentService) error
GetComments retrieves all comments for a specific video. @Summary Get comments @Description Retrieve all comments for a specific video @Tags comments @Produce json @Param videoId path string true "Video ID" @Router /comments/{videoId} [get]
func GetLikes ¶
func GetLikes(c *fiber.Ctx, likeService services.LikeService) error
GetLikes retrieves all likes for a specific video. @Summary Get likes for a video @Description Retrieve all likes for a specific video @Tags likes @Produce json @Param videoId path string true "Video ID" @Router /likes/{videoId} [get]
func GetVideos ¶
func GetVideos(c *fiber.Ctx, videoService services.VideoService) error
GetVideos retrieves all videos. @Summary Get all videos @Description Retrieves all videos from the platform @Tags videos @Produce json @Router /videos [get]
func LoginUser ¶
func LoginUser(c *fiber.Ctx, userService services.UserService) error
LoginUser authenticates a user. @Summary Authenticate a user @Description Authenticate a user and return a token @Tags users @Accept json @Produce json @Router /login [post]
func PostComment ¶
func PostComment(c *fiber.Ctx, commentService services.CommentService) error
PostComment posts a comment on a video. @Summary Post a comment @Description Add a comment to a video @Tags comments @Accept json @Produce json @Param comment body models.Comment required "Comment Content" @Router /comments [post]
func RegisterUser ¶
func RegisterUser(c *fiber.Ctx, userService services.UserService) error
RegisterUser registers a new user. @Summary Register a new user @Description Register a user with username, email, and password @Tags users @Accept json @Produce json @Param user body models.User required "User Registration Data" @Router /register [post]
func UploadVideo ¶
func UploadVideo(c *fiber.Ctx, videoService services.VideoService) error
UploadVideo uploads a new video. @Summary Upload a new video @Description Uploads a video to the platform @Tags videos @Accept json @Produce json @Param video body models.Video required "Video Details" @Router /videos [post]
Types ¶
This section is empty.