- {{ if .Methods }}
- {{ range .Methods }}
-
- {{ . }}
+ {{ if Methods }}
+ {{ range m := Methods }}
+
+ {{ m }}
{{ end }}
{{ else }}
@@ -81,46 +81,29 @@
- {{ if .Method }}
+ {{ if Method }}
Parameters
-
-
- Name |
- Type |
- Required |
- Description |
-
-
+ Name | Type | Required | Description |
- {{ if .Method.Params }}
- {{ range .Method.Params }}
+ {{ if Method.Params }}
+ {{ range p := Method.Params }}
- {{ .Name }} |
- {{ .Schema.Type }} |
-
- {{ if .Required }}
- Yes
- {{ else }}
- No
- {{ end }}
- |
- {{ .Description }} |
+ {{ p.Name }} |
+ {{ p.Schema.Type }} |
+ {{ if p.Required }}Yes{{ else }}No{{ end }} |
+ {{ p.Description }} |
{{ end }}
{{ else }}
-
- No parameters |
-
+ No parameters |
{{ end }}
@@ -128,18 +111,12 @@
Result
-
-
- Name |
- Type |
- Description |
-
-
+ Name | Type | Description |
- {{ .Method.Result.Name }} |
- {{ .Method.Result.Schema.Type }} |
- {{ .Method.Result.Description }} |
+ {{ Method.Result.Name }} |
+ {{ Method.Result.Schema.Type }} |
+ {{ Method.Result.Description }} |
@@ -147,10 +124,10 @@
Try It
@@ -159,27 +136,22 @@
Result:
-
- {{ else if .SelectedMethod }}
-
- Method not found: {{ .SelectedMethod }}
-
+ {{ else if SelectedMethod }}
+
Method not found: {{ SelectedMethod }}
{{ else }}
-
- Select a method from the list to view details.
-
+
Select a method from the list to view details.
{{ end }}
{{ end }}
-{{ end }}
+{{end}}
-{{ block scripts() }}
+{{block scripts()}}
-{{ end }}
\ No newline at end of file
+{{end}}