From 595a892f7108be4b0bfb8572905db2e88ccc1659 Mon Sep 17 00:00:00 2001 From: hunteraraujo Date: Thu, 14 Sep 2023 20:02:36 -0700 Subject: [PATCH] Introduce ApiType enum for API selection This commit adds a new enum, `ApiType`, to allow dynamic selection between different base URLs for API calls. The enum has two values: `agent` and `benchmark`, corresponding to different services. The `ApiType` enum is designed to be passed as a parameter to the `RestApiUtility` methods, enabling the utility to decide which base URL to use for HTTP requests. --- frontend/lib/models/benchmark_service/api_type.dart | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 frontend/lib/models/benchmark_service/api_type.dart diff --git a/frontend/lib/models/benchmark_service/api_type.dart b/frontend/lib/models/benchmark_service/api_type.dart new file mode 100644 index 00000000..75ff7f84 --- /dev/null +++ b/frontend/lib/models/benchmark_service/api_type.dart @@ -0,0 +1,4 @@ +enum ApiType { + agent, + benchmark, +}