forked from loafle/openapi-generator-original
19 lines
304 B
Plaintext
19 lines
304 B
Plaintext
package {{packageName}}
|
|
|
|
{{#operations}}
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type {{classname}} struct {
|
|
|
|
}
|
|
|
|
{{#operation}}
|
|
func {{nickname}}(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
|
w.WriteHeader(http.StatusOK)
|
|
}
|
|
|
|
{{/operation}}
|
|
{{/operations}} |