gouick/templates/go-swagger/custom/api.yaml.tmpl
Matthieu 'JP' DERASSE 65add2a61d
Some checks failed
continuous-integration/drone/push Build is failing
feat(go-swagger): Refactoring to use go-swagger templating system for most of the work
2023-01-01 17:06:47 +00:00

18 lines
406 B
Cheetah

---
swagger: "2.0"
info:
version: "1.0"
title: "{{ .Config.ProjectName }}"
description: "{{ .Config.ProjectDescription }}"
contact:
name: "{{ .Config.ProjectContact.Name }}"
email: "{{ .Config.ProjectContact.Email }}"
{{- if .Config.ProjectContact.URL }}
url: "{{ .Config.ProjectContact.URL }}"
{{- end }}
consumes:
- "application/json"
produces:
- "application/json"
basePath: "/"