2022-06-22 18:32:18 +00:00
|
|
|
{{- $context := .context }}
|
|
|
|
{{- $src := .src }}
|
|
|
|
{{- with $context }}
|
|
|
|
{{- with .Page.Resources.Match $src }}
|
|
|
|
{{- range . }}
|
|
|
|
{{- $src = .RelPermalink }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
<rapi-doc
|
2022-10-06 13:48:10 +00:00
|
|
|
{{- if eq (partial "output-format.hugo" .Page) "print" }}
|
|
|
|
allow-spec-file-download="false"
|
|
|
|
allow-server-selection="false"
|
|
|
|
allow-try="false"
|
|
|
|
render-style="read"
|
|
|
|
{{- else }}
|
2022-06-22 18:32:18 +00:00
|
|
|
allow-spec-file-download="true"
|
2022-10-06 13:48:10 +00:00
|
|
|
allow-server-selection="true"
|
|
|
|
allow-try="true"
|
|
|
|
render-style="view"
|
|
|
|
{{- end }}
|
2022-06-22 18:32:18 +00:00
|
|
|
default-schema-tab="example"
|
|
|
|
font-size="largest"
|
|
|
|
layout="column"
|
|
|
|
load-fonts="false"
|
|
|
|
schema-description-expanded="true"
|
|
|
|
schema-style="table"
|
|
|
|
show-header="false"
|
|
|
|
spec-url="{{ $src }}"
|
|
|
|
sort-tags="true"
|
|
|
|
></rapi-doc>
|
2022-07-11 21:52:59 +00:00
|
|
|
{{- .Page.Store.Set "hasSwagger" true }}
|
2022-06-22 18:32:18 +00:00
|
|
|
{{- end }}
|