Skip to content

Commit 124c810

Browse files
committed
Progress encryption
1 parent a186d4d commit 124c810

2 files changed

Lines changed: 18 additions & 43 deletions

File tree

api_builder_export.json

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,23 @@
2020
"selected": true,
2121
"method": "{{GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH}}",
2222
"url": "{{String}}",
23-
"requestData": [
24-
{
25-
"params": {
26-
"{{key}}": "{{value}}"
27-
},
28-
"auth": {
29-
"{{key}}": "{{value}}"
30-
},
31-
"headers": {
32-
"{{key}}": "{{value}}"
33-
},
34-
"body": {
35-
"type": "{{none, form-data, x-www-form-urlencoded, raw, binary}}",
36-
"rawType": "{{text, json, xml, html}}",
37-
"binaryPath": "{{some_file_path}}",
38-
"content": "{{some_string_content}}"
39-
}
23+
"request": {
24+
"params": {
25+
"{{key}}": "{{value}}"
26+
},
27+
"auth": {
28+
"{{key}}": "{{value}}"
29+
},
30+
"headers": {
31+
"{{key}}": "{{value}}"
32+
},
33+
"body": {
34+
"type": "{{none, form-data, x-www-form-urlencoded, raw, binary}}",
35+
"rawType": "{{text, json, xml, html}}",
36+
"binaryPath": "{{some_file_path}}",
37+
"content": "{{some_string_content}}"
4038
}
41-
],
42-
"selectedRequest": "{{request_data_id}}",
39+
},
4340
"responsePath": "",
4441
"variables": {
4542
"{{key}}": "{{value}}"

lib/features/tool/api/api_request_builder.dart

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -104,30 +104,6 @@ extension APIRowDataVariables on String {
104104
}
105105
}
106106

107-
enum CustomFunctionType { encryption, js }
108-
109-
class CustomFunction {
110-
CustomFunctionType type;
111-
Function functionDefinition;
112-
CustomFunction({
113-
required this.type,
114-
required this.functionDefinition,
115-
});
116-
117-
Map<String, dynamic> toJson() {
118-
return {
119-
"type": type.toString(),
120-
"functionDefinition": functionDefinition.toString(),
121-
};
122-
}
123-
124-
fromJson(Map<String, String> json) {
125-
type = CustomFunctionType.values
126-
.firstWhere((e) => e.toString() == json["type"]);
127-
// todo
128-
}
129-
}
130-
131107
class RequestData {
132108
Map<String, String> headers = {};
133109
Map<String, String> params = {};
@@ -649,6 +625,8 @@ class HttpRestRequestDatum extends ChangeNotifier {
649625
}
650626

651627
fromJson(Map<String, dynamic> json) {}
628+
629+
// AES
652630
}
653631

654632
class HttpRestRequestData extends ChangeNotifier {

0 commit comments

Comments
 (0)