...

Package petstore

import "github.com/go-openapi/runtime/internal/testing/petstore"
Overview
Index

Overview ▾

func NewAPI

func NewAPI(t gotest.TB) (*loads.Document, *untyped.API)

NewAPI registers a stub api for the pet store

func NewRootAPI

func NewRootAPI(t gotest.TB) (*loads.Document, *untyped.API)

NewRootAPI registers a stub api for the pet store

type Pet

Pet the pet model

type Pet struct {
    ID        int64
    Name      string
    PhotoURLs []string
    Status    string
    Tags      []Tag
}

type Tag

Tag the tag model

type Tag struct {
    ID   int64
    Name string
}