routes_multi_method_same_path

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

Overview

Package routes_multi_method_same_path exercises two handlers on the same path (GET + POST) with different parameter/response shapes — confirms the routes builder merges multiple operations under one path entry without cross-contamination.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePet

func CreatePet()

CreatePet swagger:route POST /pets pets createPetMulti

Create a pet.

Parameters:

  • name: body in: body description: pet to create required: true type: Pet

Responses:

201: body:Pet the created pet

func ListPets

func ListPets()

ListPets swagger:route GET /pets pets listPetsMulti

List pets.

Parameters:

  • name: limit in: query description: page size type: integer min: 1 max: 100

Responses:

200: body:[]Pet pets

Types

type Pet

type Pet struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

Pet is a pet on offer.

swagger:model

Jump to

Keyboard shortcuts

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