diff --git a/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml b/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml
index bf107a9c..25ee73e4 100644
--- a/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml
+++ b/.idea/.idea.FPSTemplate.dir/.idea/workspace.xml
@@ -119,7 +119,8 @@
-
+
+
@@ -138,6 +139,7 @@
+
@@ -177,25 +179,25 @@
- {
- "keyToString": {
- "ModuleVcsDetector.initialDetectionPerformed": "true",
- "RunOnceActivity.MCP Project settings loaded": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.git.unshallow": "true",
- "RunOnceActivity.typescript.service.memoryLimit.init": "true",
- "Uproject.FPSTemplate.executor": "Run",
- "git-widget-placeholder": "new/API__Gateway__v2",
- "ignore.virus.scanning.warn.message": "true",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "settings.editor.selected.configurable": "ml.llm.AcpAgentsConfigurable",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -64925,7 +64927,7 @@
-
+
diff --git a/Source/DedicatedServers/DedicatedServers.build.cs b/Source/DedicatedServers/DedicatedServers.build.cs
index 7f913846..384517d2 100644
--- a/Source/DedicatedServers/DedicatedServers.build.cs
+++ b/Source/DedicatedServers/DedicatedServers.build.cs
@@ -13,7 +13,8 @@ public class DedicatedServers : ModuleRules
"CoreUObject",
"Engine",
"OpenSSL",
- "GameplayTags"
+ "GameplayTags",
+ "HTTP"
});
PrivateDependencyModuleNames.AddRange(new string[]
diff --git a/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp b/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp
index 151e3df2..635b2366 100644
--- a/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp
+++ b/Source/DedicatedServers/Private/UI/APITest/APITestManager.cpp
@@ -2,8 +2,28 @@
#include "UI/APITest/APITestManager.h"
+#include "HttpModule.h"
+#include "Data/API/APIData.h"
+#include "GameplayTags/DedicatedServerTags.h"
void UAPITestManager::ListFleetsButtonClicked()
{
- GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, "List Fleets Button Clicked");
+ check(APIData);
+
+ TSharedPtr Request = FHttpModule::Get().CreateRequest();
+ Request->OnProcessRequestComplete().BindUObject(this, &UAPITestManager::ListFleets_Response);
+
+ const FString APIUrl = APIData->GetAPIEndPoint(DedicatedServersTags::GameSessionsAPI::ListFleets);
+
+ Request->SetURL(APIUrl);
+ Request->SetVerb("GET");
+ Request->SetHeader("Content-Type", "application/json");
+ Request->ProcessRequest();
+
+ GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, "List Fleets Request Made");
+}
+
+void UAPITestManager::ListFleets_Response(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful)
+{
+ GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, "List Fleets Response Received");
}
diff --git a/Source/DedicatedServers/Public/UI/APITest/APITestManager.h b/Source/DedicatedServers/Public/UI/APITest/APITestManager.h
index cea1e4c9..981b7064 100644
--- a/Source/DedicatedServers/Public/UI/APITest/APITestManager.h
+++ b/Source/DedicatedServers/Public/UI/APITest/APITestManager.h
@@ -3,6 +3,7 @@
#pragma once
#include "CoreMinimal.h"
+#include "Interfaces/IHttpRequest.h"
#include "UI/HTTP/HTTPRequestManager.h"
#include "APITestManager.generated.h"
@@ -18,4 +19,6 @@ public:
UFUNCTION()
void ListFleetsButtonClicked();
+
+ void ListFleets_Response(FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful);
};