Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBookByISBN ¶
func GetBookByISBN(c *fiber.Ctx) error
GetBookByISBN is a function to get a book by isbn @Summary Get a book by isbn @Description Get a book by isbn @Tags books @Accept json @Produce json @Param isbn path string true "Book ISBN code" @Success 200 {object} common.ResponseHTTP{data=model.Book} @Failure 400 {object} common.ResponseHTTP{} @Failure 404 {object} common.ResponseHTTP{} @Router /books/{isbn} [get]
func RegisterBook ¶
func RegisterBook(c *fiber.Ctx) error
RegisterBook is a function to register a book @Summary register a book by isbn @Description register a book by isbn @Tags books @Accept json @Produce json @Param book body model.Book true "Register book" @Success 200 {object} common.ResponseHTTP{} @Failure 400 {object} common.ResponseHTTP{} @Failure 500 {object} common.ResponseHTTP{} @Router /books [post]
Types ¶
This section is empty.