diff --git a/layouts/partials/components/api-methods-tab.html b/layouts/partials/components/api-methods-tab.html index ae49ab28c1..6b31b498b9 100644 --- a/layouts/partials/components/api-methods-tab.html +++ b/layouts/partials/components/api-methods-tab.html @@ -75,10 +75,10 @@ {{ end }}{{ $params := $sig.params }}{{ $returns := $sig.returns }}{{ $beforeParen := index (split $sig.signature "(") 0 }}{{ $parts := split $beforeParen " " }}{{ $methodName := index $parts (sub (len $parts) 1) }}{{ $methodName }}({{ if and $params (gt (len $params) 0) }} {{ range $pIdx, $param := $params }} {{ $param.name }}{{ if $param.type }}: {{ $param.type }}{{ end }}{{ if lt $pIdx (sub (len $params) 1) }},{{ end }}{{ if and $param.description (ne $param.description "") }} // {{ $param.description }}{{ end }} {{ end }}{{ end }}){{ if $returns }} → {{ if reflect.IsMap $returns }}{{ index $returns "type" }}{{ if and (index $returns "description") (ne (index $returns "description") "") }} // {{ index $returns "description" }}{{ end }}{{ else }}{{ $returns }}{{ end }}{{ end }}{{ end }} + {{ partial "components/api-methods-errors.html" (dict "commandName" $commandName "mappingId" $mappingId) }} {{ else }}
No method signature available for this client.
{{ end }} - {{ partial "components/api-methods-errors.html" (dict "commandName" $commandName "mappingId" $mappingId) }} {{ $first = false }} {{ end }}