Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct {
// contains filtered or unexported fields
}
func NewBookController ¶
func (*Book) Create ¶
Create godoc @Summary Modify provided URL with certain operation @Tags Books @Accept json @Produce json @Success 200 {object} dto.CleanupResponse @Failure 400 {object} response.StdResponse @Failure 404 {string} "Not Found" @Router /books/ [post]
func (*Book) Delete ¶
Delete godoc @Summary Soft delete a book by an ID @Tags Books @Produce json @Param id path uuid true "Book ID" @Success 200 {object} response.StdResponse @Failure 400 {object} response.StdResponse @Failure 404 {string} "Not Found" @Router /books/{id} [delete]
func (*Book) Detail ¶
Detail godoc @Summary Get detailed data about a book @Tags Books @Produce json @Param id path uuid true "Book ID" @Success 200 {object} response.StdResponse @Failure 400 {object} response.StdResponse @Failure 404 {string} "Not Found" @Router /books/{id} [get]
func (*Book) Read ¶
Read godoc @Summary Get summary data of a book with pagination @Tags Books @Produce json @Param title query string false "title of a book" @Success 200 {object} response.StdResponse @Failure 400 {object} response.StdResponse @Failure 404 {string} "Not Found" @Router /books [post]