mirror of
https://github.com/foss42/apidash.git
synced 2025-12-03 19:39:25 +08:00
AIRequests: Removed AIResponseModel & sendRequest implemented
This commit is contained in:
@@ -8,6 +8,13 @@ enum APIType {
|
||||
const APIType(this.label, this.abbr);
|
||||
final String label;
|
||||
final String abbr;
|
||||
|
||||
static fromMethod(String method) {
|
||||
return HTTPVerb.values.firstWhere(
|
||||
(model) => model.name == method.toLowerCase(),
|
||||
orElse: () => throw ArgumentError('INVALID HTTP METHOD'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
enum APIAuthType {
|
||||
|
||||
Reference in New Issue
Block a user