mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
- Introduced APIAuthType enum for various authentication methods. - Created APIAuthModel with basic authentication fields. - Updated RequestModel to include authType and authData. - Implemented EditAuthType widget for selecting and managing authentication. - Enhanced CollectionStateNotifier to handle authentication updates. :wq
25 lines
337 B
Dart
25 lines
337 B
Dart
import 'dart:convert';
|
|
|
|
enum APIType {
|
|
rest("HTTP", "HTTP"),
|
|
graphql("GraphQL", "GQL");
|
|
|
|
const APIType(this.label, this.abbr);
|
|
final String label;
|
|
final String abbr;
|
|
}
|
|
|
|
enum APIAuthType {
|
|
none,
|
|
basic,
|
|
apiKey,
|
|
bearerToken,
|
|
jwtBearer,
|
|
digest,
|
|
oauth1,
|
|
oauth2,
|
|
}
|
|
|
|
|
|
enum EnvironmentVariableType { variable, secret }
|