Discover Packages
github.com/go-openapi/codescan/fixtures
enhancements
routes-multi-method-same-path
package
Version:
v0.36.2
Opens a new window with list of versions in this module.
Published: Aug 1, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
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
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
type Pet struct {
ID int64 `json:"id"`
Name string `json:"name"`
}
Pet is a pet on offer.
swagger:model
Source Files
¶
Click to show internal directories.
Click to hide internal directories.