// ServerInterface represents all server handlers. type ServerInterface interface { {{range .}}{{.SummaryAsComment }} // ({{.Method}} {{.Path}}) {{.OperationId}}(w http.ResponseWriter, r *http.Request{{genParamArgs .PathParams}}{{if .RequiresParamObject}}, params {{.OperationId}}Params{{end}}) {{end}} } // TypedServerInterface is used to give each endpoint a fully typed method signature for cases where we're able to route automatically type TypedServerInterface interface { {{range .}}{{.SummaryAsComment }} // ({{.Method}} {{.Path}}) {{$reqBody := genDefaultRequestBodyType . -}} {{- if ne $reqBody "" }}{{$reqBody = printf ", body %s" $reqBody}}{{end -}} {{.OperationId}}(w http.ResponseWriter{{genParamArgs .PathParams}}{{if .RequiresParamObject}}, params {{.OperationId}}Params{{end}}{{$reqBody}}) {{end}} }