package
0.1.0
Repository: https://github.com/artm2000/goselflearn.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

@Summery Create new post @Description Create new post with title and description @Tags Post @Accept json @Produce json @Param body body dto.CreatePost true "query params" @Param Authorization header string true "bearer access token" @Success 200 {object} response.CreatePost @Failure 400 {object} response.BaseError @Failure 401 {object} response.UnauthorizedError @Failure 422 {object} response.ValidationError @Router /api/posts [post].
No description provided by the author
@Summery Get user info @Description Get user all information @Tags Auth @Accept json @Produce json @Param Authorization header string true "bearer access token" @Success 200 {object} response.GetUserInfo @Failure 401 {object} response.UnauthorizedError @Router /api/user/me [get].
@Summery Get user's posts @Description Get all user's posts @Tags Post @Accept json @Produce json @Param Authorization header string true "bearer access token" @Success 200 {object} response.GetUserPosts @Failure 401 {object} response.UnauthorizedError @Router /api/posts/me [post].
@Summery Login user @Description Login user @Tags Auth @Accept json @Produce json @Param body body dto.UserLogin true "query params" @Success 200 {object} response.LoginUser @Failure 401 {object} response.UnauthorizedError @Failure 400 {object} response.BaseError @Failure 422 {object} response.ValidationError @Router /api/auth/login [post].
@Summery Register user @Description Register new user @Tags Auth @Accept json @Produce json @Param body body dto.UserRegister true "query params" @Success 200 {object} response.RegisterUser @Failure 400 {object} response.BaseError @Failure 422 {object} response.ValidationError @Router /api/auth/register [post].