mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 03:07:41 +08:00
feat: add authentication support with APIAuthType and APIAuthModel
- 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
This commit is contained in:
@@ -15,6 +15,8 @@ class RequestModel with _$RequestModel {
|
||||
@Default(APIType.rest) APIType apiType,
|
||||
@Default("") String name,
|
||||
@Default("") String description,
|
||||
@Default(APIAuthType.none) APIAuthType authType,
|
||||
APIAuthModel? authData,
|
||||
@JsonKey(includeToJson: false) @Default(0) requestTabIndex,
|
||||
HttpRequestModel? httpRequestModel,
|
||||
int? responseStatus,
|
||||
|
||||
Reference in New Issue
Block a user