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 committed Jun 20, 2018
1 parent bd32f3d commit 5c0b326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 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 @@ -553,19 +553,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
2 changes: 2 additions & 0 deletions examples/proto/examplepb/a_bit_of_everything.proto
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ service ABitOfEverythingService {
url: "https://github.com/grpc-ecosystem/grpc-gateway";
description: "Find out more about GetQuery";
}
security: {
}
};
}
// Echo allows posting a StringMessage value.
Expand Down
1 change: 1 addition & 0 deletions examples/proto/examplepb/a_bit_of_everything.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@
"ABitOfEverythingService"
],
"deprecated": true,
"security": [],
"externalDocs": {
"description": "Find out more about GetQuery",
"url": "https://github.com/grpc-ecosystem/grpc-gateway"
Expand Down

0 comments on commit 5c0b326

Please sign in to comment.