[c] fix documentation of API authorization in README files (#15341)

align wording across generators
This commit is contained in:
Tiffany Marrel 2023-05-09 08:15:27 +02:00 committed by GitHub
parent ba8ca1e7ac
commit 63913f2d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 10 deletions

View File

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

View File

@ -100,6 +100,7 @@ Category | Method | HTTP request | Description
## Documentation for Authorization
Authentication schemes defined for the API:
### petstore_auth
@ -110,7 +111,6 @@ Category | Method | HTTP request | Description
- write:pets: modify pets in your account
- read:pets: read your pets
### api_key
- **Type**: API key