controller

package
v0.0.0-...-e40dd39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL