package
0.0.0-20241029143555-2d0d4019e563
Repository: https://github.com/naufra1/byteapi.git
Documentation: pkg.go.dev
# Functions
@Summary Change password @Description Change the user password @Tags User @Accept json @Produce json @Param id path int true "User ID" @Param request body ChangePasswordRequest true "Request body" @Success 200 {object} CreatePasswordChangeResponse @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Security ApiKeyAuth @Router /user/{id} [patch].
No description provided by the author
@Summary Create cart item @Description Create a new cart item @Tags Cart @Accept json @Produce json @Param user_id path int true "User ID" @Param computer_id path int true "Computer ID" @Success 200 {object} CreateCartItemResponse @Failure 500 {object} ErrorResponse @Security ApiKeyAuth @Router /cart/{user_id}/{computer_id} [post].
@Summary Create computer @Description Create a new computer @Tags Computer @Accept json @Produce json @Param request body CreateComputerRequest true "Request body" @Success 200 {object} CreateComputerResponse @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Security ApiKeyAuth @Router /computer [post].
@Summary Create user @Description Create a new user @Tags User @Accept json @Produce json @Param request body CreateUserRequest true "Request body" @Success 200 {object} CreateUserResponse @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /signup [post].
@Summary Delete cart item @Description Delete a item from cart @Tags Cart @Accept json @Produce json @Param item_id path int true "Item ID" @Success 200 {object} CreateCartItemResponse @Failure 500 {object} ErrorResponse @Security ApiKeyAuth @Router /cart/{item_id} [delete].
No description provided by the author
@Summary Show cart @Description Show a specific user's cart @Tags Cart @Accept json @Produce json @Param id path int true "User ID" @Success 200 {object} ListCartResponse @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Security ApiKeyAuth @Router /cart/{id} [get].
No description provided by the author
@Summary Login user @Description Login a user @Tags User @Accept json @Produce json @Param request body CreateLoginRequest true "Request body" @Success 200 {object} CreateLoginResponse @Header 200 {string} token "token" @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /signin [post].
No description provided by the author
No description provided by the author
@Summary List computer @Description List a specific computer @Tags Computer @Accept json @Produce json @Param id path int true "Computer ID" @Success 200 {object} ListComputerResponse @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /computer/{id} [get].
@Summary List computers @Description List all computers @Tags Computer @Accept json @Produce json @Success 200 {object} ListComputerResponse @Failure 500 {object} ErrorResponse @Router /computers [get].
@Summary List user @Description List a specific user @Tags User @Accept json @Produce json @Param id path int true "User ID" @Success 200 {object} ListUserResponse @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Security ApiKeyAuth @Router /user/{id} [get].
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author