layout: application: - name: configure source: asset:serverConfigureapi target: "{{ joinFilePath .Target .ServerPackage }}" file_name: "configure_{{ .Name }}.go" - name: main source: asset:serverMain target: "{{ joinFilePath .Target \"cmd\" (dasherize (pascalize .Name)) }}-server" file_name: "main.go" skip_exists: true - name: embedded_spec source: asset:swaggerJsonEmbed target: "{{ joinFilePath .Target .ServerPackage }}" file_name: "embedded_spec.go" - name: server source: asset:serverServer target: "{{ joinFilePath .Target .ServerPackage }}" file_name: "server.go" - name: builder source: asset:serverBuilder target: "{{ joinFilePath .Target .ServerPackage .Package }}" file_name: "{{ snakize (pascalize .Name) }}_api.go" - name: doc source: asset:serverDoc target: "{{ joinFilePath .Target .ServerPackage }}" file_name: "doc.go" models: - name: definition source: asset:model target: "{{ joinFilePath .Target .ModelPackage }}" file_name: "{{ (snakize (pascalize .Name)) }}.go" operations: - name: parameters source: asset:serverParameter target: "{{ if gt (len .Tags) 0 }}{{ joinFilePath .Target .ServerPackage .APIPackage .Package }}{{ else }}{{ joinFilePath .Target .ServerPackage .Package }}{{ end }}" file_name: "{{ (snakize (pascalize .Name)) }}_parameters.go" - name: responses source: asset:serverResponses target: "{{ if gt (len .Tags) 0 }}{{ joinFilePath .Target .ServerPackage .APIPackage .Package }}{{ else }}{{ joinFilePath .Target .ServerPackage .Package }}{{ end }}" file_name: "{{ (snakize (pascalize .Name)) }}_responses.go" - name: handler source: asset:serverOperation target: "{{ if gt (len .Tags) 0 }}{{ joinFilePath .Target .ServerPackage .APIPackage .Package }}{{ else }}{{ joinFilePath .Target .ServerPackage .Package }}{{ end }}" file_name: "{{ (snakize (pascalize .Name)) }}.go" - name: apihandler source: asset:apiHandler target: "{{ joinFilePath .Target \"internal\" \"api\" .Package }}" file_name: "{{ (snakize (pascalize .Name)) }}.go" skip_exists: true operation_groups: - name: cmdtag source: asset:serverTag target: "{{ joinFilePath .Target \"cmd\" .MainPackage }}" file_name: "tag_{{ (snakize (pascalize .Name)) }}.go" skip_exists: true - name: apitag source: asset:apiTag target: "{{ joinFilePath .Target \"internal\" \"api\" (snakize (pascalize .Name)) }}" file_name: "{{ (snakize (pascalize .Name)) }}.go"