{{- $method := .Get "method" | upper -}} {{- $methodStyle := .Get "method" | lower -}} {{- $endpoint := .Get "endpoint" -}} {{- $apiRef := .Get "api-ref" | default "" -}}
  {{- if ne $apiRef "" -}}
  {{ $method }} {{ $endpoint }}
  {{- else -}}
  {{ $method }} {{ $endpoint }}
  {{- end -}}