mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-02 21:50:55 +00:00
[php] fix documentation of API authorization in README files (#15306)
fix hierarchy level + align wording across generators
This commit is contained in:
parent
4deaad557e
commit
9cb14aeb8c
@ -147,9 +147,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}}}
|
||||
|
@ -86,11 +86,9 @@ Class | Method | HTTP request | Description
|
||||
{{/models}}
|
||||
|
||||
## 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}}
|
||||
### {{{name}}}
|
||||
{{#isApiKey}}
|
||||
|
||||
|
@ -167,6 +167,7 @@ Class | Method | HTTP request | Description
|
||||
|
||||
## Authorization
|
||||
|
||||
Authentication schemes defined for the API:
|
||||
### petstore_auth
|
||||
|
||||
- **Type**: `OAuth`
|
||||
@ -176,7 +177,6 @@ Class | Method | HTTP request | Description
|
||||
- **write:pets**: modify pets in your account
|
||||
- **read:pets**: read your pets
|
||||
|
||||
|
||||
### api_key
|
||||
|
||||
- **Type**: API key
|
||||
@ -184,7 +184,6 @@ Class | Method | HTTP request | Description
|
||||
- **Location**: HTTP header
|
||||
|
||||
|
||||
|
||||
### api_key_query
|
||||
|
||||
- **Type**: API key
|
||||
@ -192,17 +191,14 @@ Class | Method | HTTP request | Description
|
||||
- **Location**: URL query string
|
||||
|
||||
|
||||
|
||||
### http_basic_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
|
||||
### bearer_test
|
||||
|
||||
- **Type**: Bearer authentication (JWT)
|
||||
|
||||
|
||||
### http_signature_test
|
||||
|
||||
## Tests
|
||||
|
@ -153,7 +153,8 @@ Class | Method | HTTP request | Description
|
||||
## Documentation For Authorization
|
||||
|
||||
|
||||
## petstore_auth
|
||||
Authentication schemes defined for the API:
|
||||
### petstore_auth
|
||||
|
||||
- **Type**: OAuth
|
||||
- **Flow**: implicit
|
||||
@ -162,7 +163,7 @@ Class | Method | HTTP request | Description
|
||||
- **write:pets**: modify pets in your account
|
||||
- **read:pets**: read your pets
|
||||
|
||||
## api_key
|
||||
### api_key
|
||||
|
||||
- **Type**: API key
|
||||
- **API key parameter name**: api_key
|
||||
|
Loading…
x
Reference in New Issue
Block a user