[rust] fix documentation of API authorization in README files (#15352)

fix hierarchy level + align wording across generators
This commit is contained in:
Tiffany Marrel 2023-05-09 08:30:54 +02:00 committed by GitHub
parent 76fd2a2f66
commit ef35e6d7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 13 deletions

View File

@ -118,10 +118,10 @@ Method | HTTP request | Description
{{/model}}{{/models}}
## 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}}}
### {{{name}}}
{{#isApiKey}}- **Type**: API key
Example

View File

@ -110,7 +110,7 @@ Method | HTTP request | Description
## Documentation For Authorization
Endpoints do not require authorization.
Endpoints do not require authorization.
## Author

View File

@ -103,7 +103,7 @@ Method | HTTP request | Description
## Documentation For Authorization
Endpoints do not require authorization.
Endpoints do not require authorization.
## Author

View File

@ -184,7 +184,8 @@ Method | HTTP request | Description
## Documentation For Authorization
## authScheme
Authentication schemes defined for the API:
### authScheme
- **Type**: OAuth
- **Flow**: accessCode
- **Authorization URL**: http://example.org

View File

@ -175,7 +175,7 @@ Method | HTTP request | Description
## Documentation For Authorization
Endpoints do not require authorization.
Endpoints do not require authorization.
## Author

View File

@ -202,7 +202,8 @@ Method | HTTP request | Description
## Documentation For Authorization
## petstore_auth
Authentication schemes defined for the API:
### petstore_auth
- **Type**: OAuth
- **Flow**: implicit
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
@ -217,19 +218,19 @@ Example
Or via OAuth2 module to automatically refresh tokens and perform user authentication.
```
```
## api_key
### api_key
- **Type**: API key
Example
```
```
## api_key_query
### api_key_query
- **Type**: API key
Example
```
```
## http_basic_test
### http_basic_test
- **Type**: HTTP basic authentication
Example

View File

@ -104,7 +104,8 @@ Method | HTTP request | Description
## Documentation For Authorization
## bearerAuth
Authentication schemes defined for the API:
### bearerAuth
- **Type**: Bearer token authentication
Example

View File

@ -125,7 +125,7 @@ Method | HTTP request | Description
## Documentation For Authorization
Endpoints do not require authorization.
Endpoints do not require authorization.
## Author