forked from loafle/openapi-generator-original
[dart] fix use of isBasic condition (#15523)
This commit is contained in:
@@ -104,8 +104,12 @@ Class | Method | HTTP request | Description
|
||||
- **API key parameter name**: {{{keyParamName}}}
|
||||
- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}
|
||||
{{/isApiKey}}
|
||||
{{#isBasic}}- **Type**: HTTP basic authentication
|
||||
{{/isBasic}}
|
||||
{{#isBasicBasic}}- **Type**: HTTP basic authentication
|
||||
{{/isBasicBasic}}
|
||||
{{#isBasicBearer}}- **Type**: HTTP Bearer Token authentication{{#bearerFormat}} ({{{.}}}){{/bearerFormat}}
|
||||
{{/isBasicBearer}}
|
||||
{{#isHttpSignature}}- **Type**: HTTP signature authentication
|
||||
{{/isHttpSignature}}
|
||||
{{#isOAuth}}- **Type**: OAuth
|
||||
- **Flow**: {{{flow}}}
|
||||
- **Authorization URL**: {{{authorizationUrl}}}
|
||||
|
||||
@@ -27,11 +27,11 @@ Method | HTTP request | Description
|
||||
import 'package:{{pubName}}/api.dart';
|
||||
{{#hasAuthMethods}}
|
||||
{{#authMethods}}
|
||||
{{#isBasic}}
|
||||
{{#isBasicBasic}}
|
||||
// TODO Configure HTTP basic authorization: {{{name}}}
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('{{{name}}}').username = 'YOUR_USERNAME'
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('{{{name}}}').password = 'YOUR_PASSWORD';
|
||||
{{/isBasic}}
|
||||
{{/isBasicBasic}}
|
||||
{{#isApiKey}}
|
||||
// TODO Configure API key authorization: {{{name}}}
|
||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('{{{name}}}').apiKey = 'YOUR_API_KEY';
|
||||
|
||||
@@ -128,6 +128,9 @@ Class | Method | HTTP request | Description
|
||||
{{#isBasicBearer}}
|
||||
- **Type**: HTTP Bearer authentication
|
||||
{{/isBasicBearer}}
|
||||
{{#isHttpSignature}}
|
||||
- **Type**: HTTP signature authentication
|
||||
{{/isHttpSignature}}
|
||||
{{/isBasic}}
|
||||
{{#isOAuth}}- **Type**: OAuth
|
||||
- **Flow**: {{{flow}}}
|
||||
|
||||
@@ -191,11 +191,11 @@ Authentication schemes defined for the API:
|
||||
|
||||
### bearer_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
- **Type**: HTTP Bearer Token authentication (JWT)
|
||||
|
||||
### http_signature_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
- **Type**: HTTP signature authentication
|
||||
|
||||
|
||||
## Author
|
||||
|
||||
@@ -73,9 +73,6 @@ test http signature authentication
|
||||
### Example
|
||||
```dart
|
||||
import 'package:openapi/api.dart';
|
||||
// TODO Configure HTTP basic authorization: http_signature_test
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').username = 'YOUR_USERNAME'
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').password = 'YOUR_PASSWORD';
|
||||
|
||||
final api = Openapi().getFakeApi();
|
||||
final Pet pet = ; // Pet | Pet object that needs to be added to the store
|
||||
@@ -635,9 +632,6 @@ Fake endpoint to test group parameters (optional)
|
||||
### Example
|
||||
```dart
|
||||
import 'package:openapi/api.dart';
|
||||
// TODO Configure HTTP basic authorization: bearer_test
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').username = 'YOUR_USERNAME'
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').password = 'YOUR_PASSWORD';
|
||||
|
||||
final api = Openapi().getFakeApi();
|
||||
final int requiredStringGroup = 56; // int | Required String in group parameters
|
||||
|
||||
@@ -190,11 +190,11 @@ Authentication schemes defined for the API:
|
||||
|
||||
### bearer_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
- **Type**: HTTP Bearer Token authentication (JWT)
|
||||
|
||||
### http_signature_test
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
- **Type**: HTTP signature authentication
|
||||
|
||||
|
||||
## Author
|
||||
|
||||
@@ -73,9 +73,6 @@ test http signature authentication
|
||||
### Example
|
||||
```dart
|
||||
import 'package:openapi/api.dart';
|
||||
// TODO Configure HTTP basic authorization: http_signature_test
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').username = 'YOUR_USERNAME'
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('http_signature_test').password = 'YOUR_PASSWORD';
|
||||
|
||||
final api = Openapi().getFakeApi();
|
||||
final Pet pet = ; // Pet | Pet object that needs to be added to the store
|
||||
@@ -635,9 +632,6 @@ Fake endpoint to test group parameters (optional)
|
||||
### Example
|
||||
```dart
|
||||
import 'package:openapi/api.dart';
|
||||
// TODO Configure HTTP basic authorization: bearer_test
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').username = 'YOUR_USERNAME'
|
||||
//defaultApiClient.getAuthentication<HttpBasicAuth>('bearer_test').password = 'YOUR_PASSWORD';
|
||||
|
||||
final api = Openapi().getFakeApi();
|
||||
final int requiredStringGroup = 56; // int | Required String in group parameters
|
||||
|
||||
@@ -188,6 +188,7 @@ Authentication schemes defined for the API:
|
||||
|
||||
### http_signature_test
|
||||
|
||||
- **Type**: HTTP signature authentication
|
||||
|
||||
|
||||
## Author
|
||||
|
||||
Reference in New Issue
Block a user