forked from loafle/openapi-generator-original
added config to allow client to see debug log
This commit is contained in:
parent
287f3ff20b
commit
10c7c41e82
@ -50,6 +50,10 @@ func (c *ApiClient) CallApi(path string, method string,
|
||||
queryParams map[string]string,
|
||||
formParams map[string]string) (*resty.Response, error) {
|
||||
|
||||
//set debug flag
|
||||
configuration := NewConfiguration()
|
||||
resty.SetDebug(configuration.Debug)
|
||||
|
||||
request := prepareRequest(postBody, headerParams, queryParams, formParams)
|
||||
|
||||
switch strings.ToUpper(method) {
|
||||
|
@ -50,6 +50,10 @@ func (c *ApiClient) CallApi(path string, method string,
|
||||
queryParams map[string]string,
|
||||
formParams map[string]string) (*resty.Response, error) {
|
||||
|
||||
//set debug flag
|
||||
configuration := NewConfiguration()
|
||||
resty.SetDebug(configuration.Debug)
|
||||
|
||||
request := prepareRequest(postBody, headerParams, queryParams, formParams)
|
||||
|
||||
switch strings.ToUpper(method) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user