v1

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBooks

func GetBooks(ctx *gin.Context)

@Summary Get a list of books in the the store @Description get string by ID @Accept json @Produce json @Success 200 {array} Book "ok" @Router /books [get]

func Register

func Register(router *gin.Engine)

Types

type Book

type Book struct {
	ID     int     `json:"id,omitempty"`
	Title  string  `json:"title"`
	Author string  `json:"author"`
	Year   *uint16 `json:"year"`
}

Jump to

Keyboard shortcuts

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