Skip to content

Commit

Permalink
Change GetQuery to be a public api by clear default security configur…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
co3k authored and johanbrandhorst committed Jun 23, 2018
1 parent 41568b5 commit ee3ef70
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 163 deletions.
13 changes: 0 additions & 13 deletions examples/clients/abe/a_bit_of_everything_service_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,19 +554,6 @@ func (a ABitOfEverythingServiceApi) GetQuery(uuid string, singleNestedName strin
var localVarPostBody interface{}
var localVarFileName string
var localVarFileBytes []byte
// authentication '(OAuth2)' required
// oauth required
if a.Configuration.AccessToken != ""{
localVarHeaderParams["Authorization"] = "Bearer " + a.Configuration.AccessToken
}
// authentication '(BasicAuth)' required
// http basic authentication required
if a.Configuration.Username != "" || a.Configuration.Password != ""{
localVarHeaderParams["Authorization"] = "Basic " + a.Configuration.GetBasicAuthEncodedString()
}
// authentication '(ApiKeyAuth)' required
// set key with prefix in header
localVarHeaderParams["X-API-Key"] = a.Configuration.GetAPIKeyWithPrefix("X-API-Key")
// add default headers if any
for key := range a.Configuration.DefaultHeader {
localVarHeaderParams[key] = a.Configuration.DefaultHeader[key]
Expand Down
Loading

0 comments on commit ee3ef70

Please sign in to comment.