Commit 6aa2fa65 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen
Browse files

Code cleanup

parent 37341121
......@@ -74,8 +74,6 @@ void AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler(
auto ueId = request.param(":ueId").as<std::string>();
auto servingPlmnId = request.param(":servingPlmnId").as<std::string>();
// std::cout<<"********* servingPlmnId ********* "<<servingPlmnId<<std::endl;
// Getting the query params
auto fieldsQuery = request.query().get("fields");
Pistache::Optional<std::vector<std::string>> fields;
......
......@@ -91,8 +91,6 @@ void AuthenticationStatusDocumentApi::create_authentication_status_handler(
AuthEvent authEvent;
// std::cout << request.body() << std::endl;
try {
nlohmann::json::parse(request.body()).get_to(authEvent);
this->create_authentication_status(ueId, authEvent, response);
......
......@@ -114,7 +114,7 @@ void SMFRegistrationDocumentApi::create_smf_context_non3gpp_handler(
void SMFRegistrationDocumentApi::delete_smf_context_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("SMFRegistration Method: DELETE!");
Logger::udr_server().debug("Handle Delete SMF Context Request");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
......@@ -138,7 +138,7 @@ void SMFRegistrationDocumentApi::delete_smf_context_handler(
void SMFRegistrationDocumentApi::query_smf_registration_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("SMFRegistration Method: GET!");
Logger::udr_server().debug("Handle Query SMF Registration");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
......
......@@ -70,7 +70,8 @@ void SMFSelectionSubscriptionDataDocumentApi::setupRoutes() {
void SMFSelectionSubscriptionDataDocumentApi::query_smf_select_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("SMFSelectionSubscriptionData Method: GET!");
Logger::udr_server().debug("Handle Query SMF Select Data");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
auto servingPlmnId = request.param(":servingPlmnId").as<std::string>();
......
......@@ -57,7 +57,6 @@ void SessionManagementSubscriptionDataApiImpl::query_sm_data(
const Pistache::Optional<Pistache::Http::Header::Raw> &ifNoneMatch,
const Pistache::Optional<Pistache::Http::Header::Raw> &ifModifiedSince,
Pistache::Http::ResponseWriter &response) {
// response.send(Pistache::Http::Code::Ok, "query_sm_data\n");
// servingPlmnId pattern: "^[0-9]{5,6}$"
Snssai snssai = {};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment