go-swagger: github.com/go-swagger/go-swagger/examples/2.0/petstore/server/api Index | Files

package api

import "github.com/go-swagger/go-swagger/examples/2.0/petstore/server/api"

Index

Package Files

petstore.go

func NewPetstore Uses

func NewPetstore() (http.Handler, error)

NewPetstore creates a new petstore api handler

type Pet Uses

type Pet struct {
    ID        int64    `json:"id"`
    Name      string   `json:"name"`
    PhotoURLs []string `json:"photoUrls,omitempty"`
    Status    string   `json:"status,omitempty"`
    Tags      []Tag    `json:"tags,omitempty"`
}

Pet the pet model

type Tag Uses

type Tag struct {
    ID   int64
    Name string
}

Tag the tag model

Package api imports 11 packages (graph) and is imported by 2 packages. Updated 2019-08-20. Refresh now. Tools for package owners.