code: func NewPetstore() (http.Handler, error) {
  	spec, err := loads.Analyzed(json.RawMessage([]byte(swaggerJSON)), "")
  	if err != nil {
  		return nil, err
  	}
  	api := untyped.NewAPI(spec)
  
  	api.RegisterOperation("get", "/pets", getAllPets)
  	api.RegisterOperation("post", "/pets", createPet)
  	api.RegisterOperation("delete", "/pets/{id}", deletePet)
  	api.RegisterOperation("get", "/pets/{id}", getPetByID)
  
  	return middleware.Serve(spec, api), nil
  }
docs: // NewPetstore creates a new petstore api handler