mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
Merge pull request #870 from synapsecode/airequests_proto
GenAI + AIRequests Feature
This commit is contained in:
@@ -57,6 +57,7 @@ final Map<String, dynamic> historyRequestModelJson1 = {
|
||||
"historyId": "historyId1",
|
||||
"metaData": historyMetaModelJson1,
|
||||
"httpRequestModel": httpRequestModelGet4Json,
|
||||
'aiRequestModel': null,
|
||||
"httpResponseModel": responseModelJson,
|
||||
'preRequestScript': null,
|
||||
'postRequestScript': null,
|
||||
|
||||
@@ -218,7 +218,8 @@ Map<String, dynamic> requestModelJson = {
|
||||
'message': null,
|
||||
'httpResponseModel': responseModelJson,
|
||||
'preRequestScript': null,
|
||||
'postRequestScript': null
|
||||
'postRequestScript': null,
|
||||
'aiRequestModel': null
|
||||
};
|
||||
|
||||
/// Basic GET request model for apidash.dev
|
||||
|
||||
@@ -31,7 +31,7 @@ void main() {
|
||||
|
||||
expect(
|
||||
find.text(
|
||||
historyRequestModel.httpRequestModel.method.name.toUpperCase()),
|
||||
historyRequestModel.httpRequestModel!.method.name.toUpperCase()),
|
||||
findsOneWidget);
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ void main() {
|
||||
);
|
||||
|
||||
expect(
|
||||
find.text(historyRequestModel.httpRequestModel.url), findsOneWidget);
|
||||
find.text(historyRequestModel.httpRequestModel!.url), findsOneWidget);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user