[Go] fix documentation of API authorization in README files (#15345)

align wording across generators
This commit is contained in:
Tiffany Marrel 2023-05-09 08:24:16 +02:00 committed by GitHub
parent adfb963831
commit 4deaad557e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 15 deletions

View File

@ -98,10 +98,9 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
{{^authMethods}} Endpoints do not require authorization.
{{/authMethods}}{{#authMethods}}{{#last}} Authentication schemes defined for the API:{{/last}}{{/authMethods}}
{{^authMethods}}Endpoints do not require authorization.{{/authMethods}}
{{#hasAuthMethods}}Authentication schemes defined for the API:{{/hasAuthMethods}}
{{#authMethods}}
### {{{name}}}
{{#isApiKey}}

View File

@ -172,7 +172,7 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
Authentication schemes defined for the API:
### petstore_auth
@ -202,7 +202,6 @@ auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
```
### api_key
- **Type**: API key
@ -211,7 +210,6 @@ r, err := client.Service.Operation(auth, args)
Note, each API key must be added to a map of `map[string]APIKey` where the key is: api_key and passed in as the auth context for each request.
### api_key_query
- **Type**: API key
@ -220,7 +218,6 @@ Note, each API key must be added to a map of `map[string]APIKey` where the key i
Note, each API key must be added to a map of `map[string]APIKey` where the key is: api_key_query and passed in as the auth context for each request.
### http_basic_test
- **Type**: HTTP basic authentication

View File

@ -90,7 +90,7 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
Authentication schemes defined for the API:
### api_key
- **Type**: API key
@ -99,7 +99,6 @@ Class | Method | HTTP request | Description
Note, each API key must be added to a map of `map[string]APIKey` where the key is: X-Api-Key and passed in as the auth context for each request.
### api_key_query
- **Type**: API key

View File

@ -192,7 +192,7 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
Authentication schemes defined for the API:
### petstore_auth
@ -222,7 +222,6 @@ auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
```
### api_key
- **Type**: API key
@ -231,7 +230,6 @@ r, err := client.Service.Operation(auth, args)
Note, each API key must be added to a map of `map[string]APIKey` where the key is: api_key and passed in as the auth context for each request.
### api_key_query
- **Type**: API key
@ -240,7 +238,6 @@ Note, each API key must be added to a map of `map[string]APIKey` where the key i
Note, each API key must be added to a map of `map[string]APIKey` where the key is: api_key_query and passed in as the auth context for each request.
### http_basic_test
- **Type**: HTTP basic authentication
@ -255,7 +252,6 @@ auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAut
r, err := client.Service.Operation(auth, args)
```
### bearer_test
- **Type**: HTTP Bearer token authentication
@ -267,7 +263,6 @@ auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_T
r, err := client.Service.Operation(auth, args)
```
### http_signature_test
- **Type**: HTTP signature authentication