//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::Status_Req& req)
{
    std::string query = rest.serialize_status_req(req);
    std::stringstream uri;

    uri << "/" << RESTAPI::API_VERSION << "/"<< "status" << query;

    std::string uri_str = uri.str();
    return send_request_get(uri_str);
}
Esempio n. 2
0
//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::XSLT_Policy_Rule_Delete_Req& req)
{
    std::string query;
    rest.serialize_xslt_policy_rule_delete_req(req, query);

    std::stringstream uri;
    uri << "/" << RESTAPI::API_VERSION << "/xslt_policy_rule_delete" << query;

    std::string uri_str = uri.str();
    return send_request_get(uri_str);
}
Esempio n. 3
0
//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::Policy_Get_Policies_Req& req)
{
    std::string query;
    rest.serialize_policy_get_policies_req(req, query);
    std::stringstream uri;

    uri << "/" << RESTAPI::API_VERSION << "/policy_get_policies" << query;

    std::string uri_str = uri.str();
    return send_request_get(uri_str);
}
Esempio n. 4
0
//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::Default_Values_For_Type_Req& req)
{
    std::string query;
    rest.serialize_default_values_for_type_req(req, query);
    std::stringstream uri;

    uri << "/" << RESTAPI::API_VERSION << "/default_values_for_type" << query;

    std::string uri_str = uri.str();
    return send_request_get(uri_str);
}
//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::List_Req&)
{
    std::string uri("/");
    uri +=  RESTAPI::API_VERSION + "/list";
    return send_request_get(uri);
}
Esempio n. 6
0
//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::Policy_Get_Policies_Names_List_Req&)
{
    std::string uri = "/" + RESTAPI::API_VERSION + "/policy_get_policies_names_list";
    return send_request_get(uri);
}
Esempio n. 7
0
//---------------------------------------------------------------------------
int Http::send_request(RESTAPI::Policy_Clear_Policies_Req&)
{
    std::string uri = "/" + RESTAPI::API_VERSION + "/policy_clear_policies";
    return send_request_get(uri);
}