before parsing grades

This commit is contained in:
2025-12-17 17:16:37 -06:00
parent 314cb65843
commit a953f2d303
10 changed files with 276 additions and 2 deletions

17
src/main.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "skwyward-api-utils.hpp"
#include "spdlog/spdlog.h"
#include <string_view>
#include <toml++/toml.h>
int main (int argc, char *argv[]) {
auto config = toml::parse_file("config.toml");
std::string base_uri = config["host"].value_or("");
std::string test_username = config["test_username"].value_or("");
std::string test_password = config["test_password"].value_or("");
api_utils::StatusResponse health_check = api_methods::get_status(base_uri);
spdlog::info("Status response output: {}", health_check.status);
api_utils::ErrorResponse test_login = api_methods::get_auth_status(base_uri, test_username, test_password);
spdlog::info("Auth attempt response : {}", test_login.success);
return 0;
}