controllers

package
v0.0.0-...-ce9a106 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBook

func CreateBook(c *fiber.Ctx) error

CreateBook func for creates a new book. @Description Create a new book. @Summary create a new book @Tags Book @Accept json @Produce json @Param title body string true "Title" @Param author body string true "Author" @Param book_attrs body models.BookAttrs true "Book attributes" @Success 200 {object} models.Book @Security ApiKeyAuth @Router /v1/book [post]

func GetBooks

func GetBooks(c *fiber.Ctx) error

GetBooks func gets all exists books. @Description Get all exists books. @Summary get all exists books @Tags Books @Accept json @Produce json @Success 200 {array} models.Book @Router /v1/books [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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