v2

package
v2.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 1 Imported by: 0

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