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.
pull/5220/head
hunteraraujo 2023-09-14 20:02:36 -07:00
parent 8e25cd2391
commit 595a892f71
1 changed files with 4 additions and 0 deletions
frontend/lib/models/benchmark_service

View File

@ -0,0 +1,4 @@
enum ApiType {
agent,
benchmark,
}