bug2871

package
v0.36.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWidget

func CreateWidget()

swagger:operation POST /widgets widgets createWidget

Create a widget (same model, different per-response examples).

--- responses:

'201':
  description: created
  examples:
    application/json:
      name: created-201
'409':
  description: conflict
  examples:
    application/json:
      name: conflict-409

func GetWidget

func GetWidget()

swagger:operation GET /widgets/{id} widgets getWidget

Get a widget.

--- responses:

'200':
  description: found
  examples:
    application/json:
      name: alice-200
'404':
  description: missing
  examples:
    application/json:
      name: not-found-404

Types

type Widget

type Widget struct {
	// example: model-default
	Name string `json:"name"`
}

Widget is shared across operations and carries its OWN model-level example.

swagger:model

Jump to

Keyboard shortcuts

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