forked from loafle/openapi-generator-original
[rust] fix documentation of API authorization in README files (#15352)
fix hierarchy level + align wording across generators
This commit is contained in:
parent
76fd2a2f66
commit
ef35e6d7ea
@ -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
|
||||
|
@ -110,7 +110,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
Endpoints do not require authorization.
|
||||
Endpoints do not require authorization.
|
||||
|
||||
|
||||
## Author
|
||||
|
@ -103,7 +103,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
Endpoints do not require authorization.
|
||||
Endpoints do not require authorization.
|
||||
|
||||
|
||||
## Author
|
||||
|
@ -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
|
||||
|
@ -175,7 +175,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
Endpoints do not require authorization.
|
||||
Endpoints do not require authorization.
|
||||
|
||||
|
||||
## Author
|
||||
|
@ -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
|
||||
|
@ -104,7 +104,8 @@ Method | HTTP request | Description
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
## bearerAuth
|
||||
Authentication schemes defined for the API:
|
||||
### bearerAuth
|
||||
- **Type**: Bearer token authentication
|
||||
|
||||
Example
|
||||
|
@ -125,7 +125,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
Endpoints do not require authorization.
|
||||
Endpoints do not require authorization.
|
||||
|
||||
|
||||
## Author
|
||||
|
Loading…
x
Reference in New Issue
Block a user