rest

package
v0.0.0-...-f75d1de Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(app *fiber.App, bookService service.BookService)

Types

type BookHandler

type BookHandler struct {
	Service service.BookService
}

func (*BookHandler) AddBook

func (h *BookHandler) AddBook(ctx *fiber.Ctx) error

AddBook @Summary Add book @Description Add book @Tags BOOK @Success 200 @Router /book/ [post]

type BookRequest

type BookRequest struct {
	Name string `json:"name"`
	Page uint   `json:"page"`
}

func (BookRequest) ToCommand

func (req BookRequest) ToCommand() command.CreateBookCommand

Jump to

Keyboard shortcuts

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