petstore

package
v1.23.10 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 1 Imported by: 0

README

Multi-content types

This example shows how to use multiple content types using a single struct type. This tests:

  • Multiple content types being set for the endpoints.
  • The Content-Type header being set correctly for the endpoints.
  • The same struct type being used for multiple endpoints with the appropriate type name.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiContentType

type MultiContentType struct {
	Test string `json:"json-test" xml:"xml-test" yaml:"yaml-test"`
}

Jump to

Keyboard shortcuts

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