|
|
|
|
@ -15,6 +15,7 @@
|
|
|
|
|
{{ $api_data := index .api_data }}
|
|
|
|
|
{{ $base_url := .base_url }}
|
|
|
|
|
{{ $anchor_base := .anchor_base }}
|
|
|
|
|
{{ $page := .page }}
|
|
|
|
|
|
|
|
|
|
{{ range $path_name, $path_data := $api_data.paths }}
|
|
|
|
|
|
|
|
|
|
@ -26,28 +27,28 @@
|
|
|
|
|
|
|
|
|
|
{{ with $path_data.get }}
|
|
|
|
|
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "GET" "operation_data" . "anchor_base" $anchor_base) }}
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "GET" "operation_data" . "anchor_base" $anchor_base "page" $page) }}
|
|
|
|
|
{{ partial "openapi/render-operation" $operation_params }}
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ with $path_data.post }}
|
|
|
|
|
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "POST" "operation_data" . "anchor_base" $anchor_base) }}
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "POST" "operation_data" . "anchor_base" $anchor_base "page" $page) }}
|
|
|
|
|
{{ partial "openapi/render-operation" $operation_params }}
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ with $path_data.put }}
|
|
|
|
|
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "PUT" "operation_data" . "anchor_base" $anchor_base) }}
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "PUT" "operation_data" . "anchor_base" $anchor_base "page" $page) }}
|
|
|
|
|
{{ partial "openapi/render-operation" $operation_params }}
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ with $path_data.delete }}
|
|
|
|
|
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "DELETE" "operation_data" . "anchor_base" $anchor_base) }}
|
|
|
|
|
{{ $operation_params := merge $params (dict "method" "DELETE" "operation_data" . "anchor_base" $anchor_base "page" $page) }}
|
|
|
|
|
{{ partial "openapi/render-operation" $operation_params }}
|
|
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|