foo

package
v0.36.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package docs SwagTest

Test Swagger

Schemes: https
Version: 1.0.0
BasePath: /test/

Consumes:
- application/json

Produces:
- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	Name string
}

type Book

type Book struct {
	// min: 0
	//
	// example: 2021
	Published int
	// example: { "Name": "Tolkien" }
	Author Author
}

Book holds all relevant information about a book.

At this moment, a book is only described by its publishing date and author.

example: { "Published": 2026, "Author": "Fred" }

default: { "Published": 1900, "Author": "Unknown" }

swagger:model

Jump to

Keyboard shortcuts

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