models

package
v0.0.0-...-9867eb1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	// ID of the book
	// in: int
	ID int `json:"id" example:"1"`
	// Title of the book
	// in: string
	Title string `json:"title" example:"Staggering Forward"`
	// Author of the book
	// in: string
	Author string `json:"author" example:"Mr. Karnad"`
	// Year of the book
	// in: string
	Year string `json:"year" example:"2010"`
}

swagger:model Book

type Error

type Error struct {

	// Error Message
	Message string `json:"message"`
}

Error Struct

Jump to

Keyboard shortcuts

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