[objc] fix documentation of API authorization in README files (#15347)

fix hierarchy level + align wording across generators
This commit is contained in:
Tiffany Marrel 2023-05-09 08:23:19 +02:00 committed by GitHub
parent 55e9f66cae
commit adfb963831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View File

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

View File

@ -123,13 +123,14 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
## api_key
Authentication schemes defined for the API:
### api_key
- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header
## petstore_auth
### petstore_auth
- **Type**: OAuth
- **Flow**: implicit

View File

@ -123,13 +123,14 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
## api_key
Authentication schemes defined for the API:
### api_key
- **Type**: API key
- **API key parameter name**: api_key
- **Location**: HTTP header
## petstore_auth
### petstore_auth
- **Type**: OAuth
- **Flow**: implicit