From b7ce7c8572235c1434108d986ca781788264449f Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Tue, 25 Jun 2024 15:57:49 +0200 Subject: [PATCH] fix(go): method in the doc (#3250) --- templates/go/api.mustache | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/templates/go/api.mustache b/templates/go/api.mustache index 508197198c..272db39a4b 100644 --- a/templates/go/api.mustache +++ b/templates/go/api.mustache @@ -110,7 +110,33 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/s {{/hasParams}} /* {{operationId}} calls the API and returns the raw response from it. -{{> operation_description}} + {{#notes}} + + {{{unescapedNotes}}} + {{/notes}} + {{#vendorExtensions}} + {{#x-acl.0}} + + Required API Key ACLs:{{/x-acl.0}} + {{#x-acl}} + - {{.}} + {{/x-acl}} + {{/vendorExtensions}} + + Request can be constructed by NewApi{{operationId}}Request with parameters below. + @param ctx context.Context - Context of the request + {{#allParams}} + @param {{paramName}} {{dataType}}{{#description}} - {{{.}}}{{/description}} + {{/allParams}} + @param opts ...Option - Optional parameters for the API call + @return *http.Response - The raw response from the API + @return []byte - The raw response body from the API + @return error - An error if the API call fails + {{#isDeprecated}} + + Deprecated + {{/isDeprecated}} + */ func (c *APIClient) {{nickname}}WithHTTPInfo(ctx context.Context, {{#hasParams}}r {{#structPrefix}}{{&classname}}{{/structPrefix}}{{^structPrefix}}Api{{/structPrefix}}{{operationId}}Request,{{/hasParams}} opts ...Option) (*http.Response, []byte, error) { var ( postBody any