pass body opion to http client
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
1f8cb74813
commit
1ba34c65f0
File diff suppressed because one or more lines are too long
@ -57,6 +57,7 @@ func (c *{{$ServiceName | lowerFirst}}Service) {{.Name}}(ctx context.Context, re
|
||||
nopts := append(opts,
|
||||
micro_client_http.Method("{{httpVerb .}}"),
|
||||
micro_client_http.Path("{{httpPath .}}"),
|
||||
micro_client_http.Body("{{httpBody .}}"),
|
||||
{{- if not (contains (json (openapiOption .)) "null") }}
|
||||
{{- if (openapiOption .).Responses }}
|
||||
micro_client_http.ErrorMap(errmap),
|
||||
|
Loading…
Reference in New Issue
Block a user