before parsing grades
This commit is contained in:
17
src/main.cpp
Normal file
17
src/main.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user