summaryrefslogtreecommitdiff
path: root/vendor/github.com/go-swagger/go-swagger/generator/templates/server/doc.gotmpl
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-swagger/go-swagger/generator/templates/server/doc.gotmpl')
-rw-r--r--vendor/github.com/go-swagger/go-swagger/generator/templates/server/doc.gotmpl63
1 files changed, 63 insertions, 0 deletions
diff --git a/vendor/github.com/go-swagger/go-swagger/generator/templates/server/doc.gotmpl b/vendor/github.com/go-swagger/go-swagger/generator/templates/server/doc.gotmpl
new file mode 100644
index 000000000..b51734aa4
--- /dev/null
+++ b/vendor/github.com/go-swagger/go-swagger/generator/templates/server/doc.gotmpl
@@ -0,0 +1,63 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+
+{{- if .Copyright }}
+// {{ comment .Copyright }}
+{{- end }}
+
+
+// Package {{ .APIPackage }} {{ if .Info.Title }}{{ comment .Info.Title }}{{ else }}{{ comment (humanize .Name) }}{{end}}
+//
+{{- if .Info.Description }}
+// {{ comment .Info.Description " " }}
+{{- end }}
+{{- if .Info.TermsOfService }}
+// Terms Of Service:
+// {{ comment .Info.TermsOfService " " }}
+{{- end }}
+{{- if or .Schemes .Host .BasePath .Info }}
+ {{- if .Schemes }}
+// Schemes:
+ {{- range .Schemes }}
+// {{ . }}
+ {{- end }}
+ {{- end }}
+ {{- if .Host }}
+// Host: {{ .Host }}
+ {{- end }}
+ {{- if .BasePath }}
+// BasePath: {{ .BasePath }}
+ {{- end}}
+ {{- with .Info }}
+ {{- if .Version }}
+// Version: {{ .Version }}
+ {{- end }}
+ {{- if .License }}
+// License: {{ if .License.Name }}{{ .License.Name}} {{ end }}{{ if .License.URL }}{{ .License.URL }}{{ end }}
+ {{- end }}
+ {{- if .Contact }}
+// Contact: {{ if .Contact.Name }}{{ .Contact.Name }}{{ end }}{{ if .Contact.Email }}<{{ .Contact.Email }}>{{ end }}{{ if .Contact.URL }} {{ .Contact.URL }}{{ end }}
+ {{- end }}
+ {{- end }}
+{{- end }}
+{{- if .Consumes }}
+//
+// Consumes:
+ {{- range .Consumes }}
+ {{- range .AllSerializers }}
+// - {{ .MediaType -}}
+ {{- end }}
+ {{- end }}
+{{- end }}
+{{- if .Produces }}
+//
+// Produces:
+ {{- range .Produces }}
+ {{- range .AllSerializers }}
+// - {{ .MediaType -}}
+ {{- end }}
+ {{- end }}
+{{- end }}
+//
+// swagger:meta
+package {{ .APIPackage }}