Commit 1a5c118a authored by yangjian's avatar yangjian

update src format

parent e4fb5317
This diff is collapsed.
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessAndMobilityPolicyDataDocumentApi.h"
#include "Helpers.h"
......@@ -21,50 +22,60 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AccessAndMobilityPolicyDataDocumentApi::AccessAndMobilityPolicyDataDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AccessAndMobilityPolicyDataDocumentApi::AccessAndMobilityPolicyDataDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AccessAndMobilityPolicyDataDocumentApi::init() {
setupRoutes();
}
void AccessAndMobilityPolicyDataDocumentApi::init() { setupRoutes(); }
void AccessAndMobilityPolicyDataDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/policy-data/ues/:ueId/am-data", Routes::bind(&AccessAndMobilityPolicyDataDocumentApi::read_access_and_mobility_policy_data_handler, this));
Routes::Get(*router, base + "/policy-data/ues/:ueId/am-data",
Routes::bind(&AccessAndMobilityPolicyDataDocumentApi::
read_access_and_mobility_policy_data_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AccessAndMobilityPolicyDataDocumentApi::access_and_mobility_policy_data_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&AccessAndMobilityPolicyDataDocumentApi::
access_and_mobility_policy_data_document_api_default_handler,
this));
}
void AccessAndMobilityPolicyDataDocumentApi::read_access_and_mobility_policy_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
try {
this->read_access_and_mobility_policy_data(ueId, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void AccessAndMobilityPolicyDataDocumentApi::
read_access_and_mobility_policy_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
void AccessAndMobilityPolicyDataDocumentApi::access_and_mobility_policy_data_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
this->read_access_and_mobility_policy_data(ueId, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void AccessAndMobilityPolicyDataDocumentApi::
access_and_mobility_policy_data_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AccessAndMobilitySubscriptionDataDocumentApi.h"
#include "Helpers.h"
......@@ -22,76 +23,89 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AccessAndMobilitySubscriptionDataDocumentApi::AccessAndMobilitySubscriptionDataDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AccessAndMobilitySubscriptionDataDocumentApi::
AccessAndMobilitySubscriptionDataDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AccessAndMobilitySubscriptionDataDocumentApi::init() {
setupRoutes();
}
void AccessAndMobilitySubscriptionDataDocumentApi::init() { setupRoutes(); }
void AccessAndMobilitySubscriptionDataDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/:ueId/:servingPlmnId/provisioned-data/am-data", Routes::bind(&AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AccessAndMobilitySubscriptionDataDocumentApi::access_and_mobility_subscription_data_document_api_default_handler, this));
using namespace Pistache::Rest;
Routes::Get(
*router,
base + "/subscription-data/:ueId/:servingPlmnId/provisioned-data/am-data",
Routes::bind(
&AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&AccessAndMobilitySubscriptionDataDocumentApi::
access_and_mobility_subscription_data_document_api_default_handler,
this));
}
void AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("AccessAndMobilitySubscriptionData Method: GET!");
// Getting the path params
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;
if(!fieldsQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(fieldsQuery.get(), valueQuery_instance)){
fields = Pistache::Some(valueQuery_instance);
}
}
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
void AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("AccessAndMobilitySubscriptionData Method: GET!");
// Getting the path params
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;
if (!fieldsQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(fieldsQuery.get(), valueQuery_instance)) {
fields = Pistache::Some(valueQuery_instance);
}
// Getting the header params
auto ifNoneMatch = request.headers().tryGetRaw("If-None-Match");
auto ifModifiedSince = request.headers().tryGetRaw("If-Modified-Since");
try {
this->query_am_data(ueId, servingPlmnId, fields, supportedFeatures, ifNoneMatch, ifModifiedSince, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
void AccessAndMobilitySubscriptionDataDocumentApi::access_and_mobility_subscription_data_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
// Getting the header params
auto ifNoneMatch = request.headers().tryGetRaw("If-None-Match");
auto ifModifiedSince = request.headers().tryGetRaw("If-Modified-Since");
try {
this->query_am_data(ueId, servingPlmnId, fields, supportedFeatures,
ifNoneMatch, ifModifiedSince, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void AccessAndMobilitySubscriptionDataDocumentApi::
access_and_mobility_subscription_data_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AmfSubscriptionInfoDocumentApi.h"
#include "Helpers.h"
......@@ -21,65 +22,78 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AmfSubscriptionInfoDocumentApi::AmfSubscriptionInfoDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AmfSubscriptionInfoDocumentApi::AmfSubscriptionInfoDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AmfSubscriptionInfoDocumentApi::init() {
setupRoutes();
}
void AmfSubscriptionInfoDocumentApi::init() { setupRoutes(); }
void AmfSubscriptionInfoDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Patch(*router, base + "/subscription-data/:ueId/context-data/ee-subscriptions/:subsId/amf-subscriptions", Routes::bind(&AmfSubscriptionInfoDocumentApi::modify_amf_subscription_info_handler, this));
Routes::Patch(
*router,
base + "/subscription-data/:ueId/context-data/ee-subscriptions/:subsId/"
"amf-subscriptions",
Routes::bind(
&AmfSubscriptionInfoDocumentApi::modify_amf_subscription_info_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AmfSubscriptionInfoDocumentApi::amf_subscription_info_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&AmfSubscriptionInfoDocumentApi::
amf_subscription_info_document_api_default_handler,
this));
}
void AmfSubscriptionInfoDocumentApi::modify_amf_subscription_info_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
auto subsId = request.param(":subsId").as<std::string>();
// Getting the body param
std::vector<PatchItem> patchItem;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(patchItem);
this->modify_amf_subscription_info(ueId, subsId, patchItem, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void AmfSubscriptionInfoDocumentApi::modify_amf_subscription_info_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
auto subsId = request.param(":subsId").as<std::string>();
}
// Getting the body param
std::vector<PatchItem> patchItem;
void AmfSubscriptionInfoDocumentApi::amf_subscription_info_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(patchItem);
this->modify_amf_subscription_info(ueId, subsId, patchItem,
supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
void AmfSubscriptionInfoDocumentApi::
amf_subscription_info_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "ApplicationDataSubscriptionsCollectionApi.h"
#include "Helpers.h"
......@@ -21,82 +22,101 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
ApplicationDataSubscriptionsCollectionApi::ApplicationDataSubscriptionsCollectionApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
ApplicationDataSubscriptionsCollectionApi::
ApplicationDataSubscriptionsCollectionApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void ApplicationDataSubscriptionsCollectionApi::init() {
setupRoutes();
}
void ApplicationDataSubscriptionsCollectionApi::init() { setupRoutes(); }
void ApplicationDataSubscriptionsCollectionApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Post(*router, base + "/application-data/subs-to-notify", Routes::bind(&ApplicationDataSubscriptionsCollectionApi::create_individual_application_data_subscription_handler, this));
Routes::Get(*router, base + "/application-data/subs-to-notify", Routes::bind(&ApplicationDataSubscriptionsCollectionApi::read_application_data_change_subscriptions_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&ApplicationDataSubscriptionsCollectionApi::application_data_subscriptions_collection_api_default_handler, this));
}
void ApplicationDataSubscriptionsCollectionApi::create_individual_application_data_subscription_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the body param
ApplicationDataSubs applicationDataSubs;
try {
nlohmann::json::parse(request.body()).get_to(applicationDataSubs);
this->create_individual_application_data_subscription(applicationDataSubs, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
using namespace Pistache::Rest;
Routes::Post(
*router, base + "/application-data/subs-to-notify",
Routes::bind(&ApplicationDataSubscriptionsCollectionApi::
create_individual_application_data_subscription_handler,
this));
Routes::Get(
*router, base + "/application-data/subs-to-notify",
Routes::bind(&ApplicationDataSubscriptionsCollectionApi::
read_application_data_change_subscriptions_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&ApplicationDataSubscriptionsCollectionApi::
application_data_subscriptions_collection_api_default_handler,
this));
}
void ApplicationDataSubscriptionsCollectionApi::read_application_data_change_subscriptions_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the query params
auto dataFilterQuery = request.query().get("data-filter");
Pistache::Optional<DataFilter> dataFilter;
if(!dataFilterQuery.isEmpty()){
// DataFilter valueQuery_instance;
// if(fromStringValue(dataFilterQuery.get(), valueQuery_instance)){
// dataFilter = Pistache::Some(valueQuery_instance);
// }
}
try {
this->read_application_data_change_subscriptions(dataFilter, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void ApplicationDataSubscriptionsCollectionApi::
create_individual_application_data_subscription_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the body param
ApplicationDataSubs applicationDataSubs;
try {
nlohmann::json::parse(request.body()).get_to(applicationDataSubs);
this->create_individual_application_data_subscription(applicationDataSubs,
response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void ApplicationDataSubscriptionsCollectionApi::application_data_subscriptions_collection_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
void ApplicationDataSubscriptionsCollectionApi::
read_application_data_change_subscriptions_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the query params
auto dataFilterQuery = request.query().get("data-filter");
Pistache::Optional<DataFilter> dataFilter;
if (!dataFilterQuery.isEmpty()) {
// DataFilter valueQuery_instance;
// if(fromStringValue(dataFilterQuery.get(), valueQuery_instance)){
// dataFilter = Pistache::Some(valueQuery_instance);
// }
}
try {
this->read_application_data_change_subscriptions(dataFilter, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void ApplicationDataSubscriptionsCollectionApi::
application_data_subscriptions_collection_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthenticationSoRDocumentApi.h"
#include "Helpers.h"
......@@ -21,96 +22,113 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AuthenticationSoRDocumentApi::AuthenticationSoRDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AuthenticationSoRDocumentApi::AuthenticationSoRDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AuthenticationSoRDocumentApi::init() {
setupRoutes();
}
void AuthenticationSoRDocumentApi::init() { setupRoutes(); }
void AuthenticationSoRDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Put(*router, base + "/subscription-data/:ueId/ue-update-confirmation-data/sor-data", Routes::bind(&AuthenticationSoRDocumentApi::create_authentication_so_r_handler, this));
Routes::Get(*router, base + "/subscription-data/:ueId/ue-update-confirmation-data/sor-data", Routes::bind(&AuthenticationSoRDocumentApi::query_auth_so_r_handler, this));
Routes::Put(
*router,
base + "/subscription-data/:ueId/ue-update-confirmation-data/sor-data",
Routes::bind(
&AuthenticationSoRDocumentApi::create_authentication_so_r_handler,
this));
Routes::Get(
*router,
base + "/subscription-data/:ueId/ue-update-confirmation-data/sor-data",
Routes::bind(&AuthenticationSoRDocumentApi::query_auth_so_r_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AuthenticationSoRDocumentApi::authentication_so_r_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&AuthenticationSoRDocumentApi::
authentication_so_r_document_api_default_handler,
this));
}
void AuthenticationSoRDocumentApi::create_authentication_so_r_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the body param
SorData sorData;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(sorData);
this->create_authentication_so_r(ueId, supportedFeatures, sorData, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void AuthenticationSoRDocumentApi::create_authentication_so_r_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
}
void AuthenticationSoRDocumentApi::query_auth_so_r_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supportedFeatures");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_auth_so_r(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
// Getting the body param
SorData sorData;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(sorData);
this->create_authentication_so_r(ueId, supportedFeatures, sorData,
response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void AuthenticationSoRDocumentApi::query_auth_so_r_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
void AuthenticationSoRDocumentApi::authentication_so_r_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supportedFeatures");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_auth_so_r(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
void AuthenticationSoRDocumentApi::
authentication_so_r_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
This diff is collapsed.
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthenticationSubscriptionDocumentApi.h"
#include "Helpers.h"
......@@ -22,101 +23,119 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AuthenticationSubscriptionDocumentApi::AuthenticationSubscriptionDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AuthenticationSubscriptionDocumentApi::AuthenticationSubscriptionDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AuthenticationSubscriptionDocumentApi::init() {
setupRoutes();
}
void AuthenticationSubscriptionDocumentApi::init() { setupRoutes(); }
void AuthenticationSubscriptionDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/:ueId/authentication-data/authentication-subscription", Routes::bind(&AuthenticationSubscriptionDocumentApi::read_authentication_subscription_handler, this));
Routes::Patch(*router, base + "/subscription-data/:ueId/authentication-data/authentication-subscription", Routes::bind(&AuthenticationSubscriptionDocumentApi::modify_authentication_subscription_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AuthenticationSubscriptionDocumentApi::authentication_subscription_document_api_default_handler, this));
using namespace Pistache::Rest;
Routes::Get(*router,
base + "/subscription-data/:ueId/authentication-data/"
"authentication-subscription",
Routes::bind(&AuthenticationSubscriptionDocumentApi::
read_authentication_subscription_handler,
this));
Routes::Patch(*router,
base + "/subscription-data/:ueId/authentication-data/"
"authentication-subscription",
Routes::bind(&AuthenticationSubscriptionDocumentApi::
modify_authentication_subscription_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&AuthenticationSubscriptionDocumentApi::
authentication_subscription_document_api_default_handler,
this));
}
void AuthenticationSubscriptionDocumentApi::modify_authentication_subscription_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("AuthenticationSubscription Method: PATCH!");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the body param
std::vector<PatchItem> patchItem;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(patchItem);
this->modify_authentication_subscription(ueId, patchItem, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
void AuthenticationSubscriptionDocumentApi::
modify_authentication_subscription_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("AuthenticationSubscription Method: PATCH!");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the body param
std::vector<PatchItem> patchItem;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(patchItem);
this->modify_authentication_subscription(ueId, patchItem, supportedFeatures,
response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void AuthenticationSubscriptionDocumentApi::read_authentication_subscription_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response)
{
Logger::udr_server().info("AuthenticationSubscription Method: GET!");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->read_authentication_subscription(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
void AuthenticationSubscriptionDocumentApi::
read_authentication_subscription_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
Logger::udr_server().info("AuthenticationSubscription Method: GET!");
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
void AuthenticationSubscriptionDocumentApi::authentication_subscription_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
try {
this->read_authentication_subscription(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void AuthenticationSubscriptionDocumentApi::
authentication_subscription_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AuthenticationUPUDocumentApi.h"
#include "Helpers.h"
......@@ -21,96 +22,112 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
AuthenticationUPUDocumentApi::AuthenticationUPUDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
AuthenticationUPUDocumentApi::AuthenticationUPUDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void AuthenticationUPUDocumentApi::init() {
setupRoutes();
}
void AuthenticationUPUDocumentApi::init() { setupRoutes(); }
void AuthenticationUPUDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Put(*router, base + "/subscription-data/:ueId/ue-update-confirmation-data/upu-data", Routes::bind(&AuthenticationUPUDocumentApi::create_authentication_upu_handler, this));
Routes::Get(*router, base + "/subscription-data/:ueId/ue-update-confirmation-data/upu-data", Routes::bind(&AuthenticationUPUDocumentApi::query_auth_upu_handler, this));
Routes::Put(
*router,
base + "/subscription-data/:ueId/ue-update-confirmation-data/upu-data",
Routes::bind(
&AuthenticationUPUDocumentApi::create_authentication_upu_handler,
this));
Routes::Get(
*router,
base + "/subscription-data/:ueId/ue-update-confirmation-data/upu-data",
Routes::bind(&AuthenticationUPUDocumentApi::query_auth_upu_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&AuthenticationUPUDocumentApi::authentication_upu_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&AuthenticationUPUDocumentApi::
authentication_upu_document_api_default_handler,
this));
}
void AuthenticationUPUDocumentApi::create_authentication_upu_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the body param
UpuData upuData;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(upuData);
this->create_authentication_upu(ueId, supportedFeatures, upuData, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void AuthenticationUPUDocumentApi::create_authentication_upu_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
}
void AuthenticationUPUDocumentApi::query_auth_upu_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supportedFeatures");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_auth_upu(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
// Getting the body param
UpuData upuData;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(upuData);
this->create_authentication_upu(ueId, supportedFeatures, upuData, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void AuthenticationUPUDocumentApi::query_auth_upu_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
void AuthenticationUPUDocumentApi::authentication_upu_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supportedFeatures");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_auth_upu(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
void AuthenticationUPUDocumentApi::
authentication_upu_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "BdtDataStoreApi.h"
#include "Helpers.h"
......@@ -21,66 +22,68 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
BdtDataStoreApi::BdtDataStoreApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
BdtDataStoreApi::BdtDataStoreApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void BdtDataStoreApi::init() {
setupRoutes();
}
void BdtDataStoreApi::init() { setupRoutes(); }
void BdtDataStoreApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/policy-data/bdt-data", Routes::bind(&BdtDataStoreApi::read_bdt_data_handler, this));
Routes::Get(*router, base + "/policy-data/bdt-data",
Routes::bind(&BdtDataStoreApi::read_bdt_data_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&BdtDataStoreApi::bdt_data_store_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&BdtDataStoreApi::bdt_data_store_api_default_handler, this));
}
void BdtDataStoreApi::read_bdt_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
void BdtDataStoreApi::read_bdt_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the query params
auto bdtRefIdsQuery = request.query().get("bdt-ref-ids");
Pistache::Optional<std::vector<std::string>> bdtRefIds;
if(!bdtRefIdsQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(bdtRefIdsQuery.get(), valueQuery_instance)){
bdtRefIds = Pistache::Some(valueQuery_instance);
}
}
auto suppFeatQuery = request.query().get("supp-feat");
Pistache::Optional<std::string> suppFeat;
if(!suppFeatQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(suppFeatQuery.get(), valueQuery_instance)){
suppFeat = Pistache::Some(valueQuery_instance);
}
// Getting the query params
auto bdtRefIdsQuery = request.query().get("bdt-ref-ids");
Pistache::Optional<std::vector<std::string>> bdtRefIds;
if (!bdtRefIdsQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(bdtRefIdsQuery.get(), valueQuery_instance)) {
bdtRefIds = Pistache::Some(valueQuery_instance);
}
try {
this->read_bdt_data(bdtRefIds, suppFeat, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
auto suppFeatQuery = request.query().get("supp-feat");
Pistache::Optional<std::string> suppFeat;
if (!suppFeatQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(suppFeatQuery.get(), valueQuery_instance)) {
suppFeat = Pistache::Some(valueQuery_instance);
}
}
try {
this->read_bdt_data(bdtRefIds, suppFeat, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void BdtDataStoreApi::bdt_data_store_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
}
}
}
void BdtDataStoreApi::bdt_data_store_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "BdtPolicyDataStoreApi.h"
#include "Helpers.h"
......@@ -21,74 +22,78 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
BdtPolicyDataStoreApi::BdtPolicyDataStoreApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
BdtPolicyDataStoreApi::BdtPolicyDataStoreApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void BdtPolicyDataStoreApi::init() {
setupRoutes();
}
void BdtPolicyDataStoreApi::init() { setupRoutes(); }
void BdtPolicyDataStoreApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/application-data/bdtPolicyData", Routes::bind(&BdtPolicyDataStoreApi::read_bdt_policy_data_handler, this));
Routes::Get(
*router, base + "/application-data/bdtPolicyData",
Routes::bind(&BdtPolicyDataStoreApi::read_bdt_policy_data_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&BdtPolicyDataStoreApi::bdt_policy_data_store_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&BdtPolicyDataStoreApi::bdt_policy_data_store_api_default_handler, this));
}
void BdtPolicyDataStoreApi::read_bdt_policy_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
void BdtPolicyDataStoreApi::read_bdt_policy_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the query params
auto bdtPolicyIdsQuery = request.query().get("bdt-policy-ids");
Pistache::Optional<std::vector<std::string>> bdtPolicyIds;
if(!bdtPolicyIdsQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(bdtPolicyIdsQuery.get(), valueQuery_instance)){
bdtPolicyIds = Pistache::Some(valueQuery_instance);
}
}
auto internalGroupIdsQuery = request.query().get("internal-group-ids");
Pistache::Optional<std::vector<std::string>> internalGroupIds;
if(!internalGroupIdsQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(internalGroupIdsQuery.get(), valueQuery_instance)){
internalGroupIds = Pistache::Some(valueQuery_instance);
}
// Getting the query params
auto bdtPolicyIdsQuery = request.query().get("bdt-policy-ids");
Pistache::Optional<std::vector<std::string>> bdtPolicyIds;
if (!bdtPolicyIdsQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(bdtPolicyIdsQuery.get(), valueQuery_instance)) {
bdtPolicyIds = Pistache::Some(valueQuery_instance);
}
auto supisQuery = request.query().get("supis");
Pistache::Optional<std::vector<std::string>> supis;
if(!supisQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(supisQuery.get(), valueQuery_instance)){
supis = Pistache::Some(valueQuery_instance);
}
}
auto internalGroupIdsQuery = request.query().get("internal-group-ids");
Pistache::Optional<std::vector<std::string>> internalGroupIds;
if (!internalGroupIdsQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(internalGroupIdsQuery.get(), valueQuery_instance)) {
internalGroupIds = Pistache::Some(valueQuery_instance);
}
try {
this->read_bdt_policy_data(bdtPolicyIds, internalGroupIds, supis, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
auto supisQuery = request.query().get("supis");
Pistache::Optional<std::vector<std::string>> supis;
if (!supisQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(supisQuery.get(), valueQuery_instance)) {
supis = Pistache::Some(valueQuery_instance);
}
}
try {
this->read_bdt_policy_data(bdtPolicyIds, internalGroupIds, supis, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void BdtPolicyDataStoreApi::bdt_policy_data_store_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
}
}
}
void BdtPolicyDataStoreApi::bdt_policy_data_store_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "CAGACKDocumentApi.h"
#include "Helpers.h"
......@@ -21,60 +22,66 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
CAGACKDocumentApi::CAGACKDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
CAGACKDocumentApi::CAGACKDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void CAGACKDocumentApi::init() {
setupRoutes();
}
void CAGACKDocumentApi::init() { setupRoutes(); }
void CAGACKDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/:ueId/ue-update-confirmation-data/subscribed-cag", Routes::bind(&CAGACKDocumentApi::query_cag_ack_handler, this));
Routes::Get(
*router,
base +
"/subscription-data/:ueId/ue-update-confirmation-data/subscribed-cag",
Routes::bind(&CAGACKDocumentApi::query_cag_ack_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&CAGACKDocumentApi::cagack_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&CAGACKDocumentApi::cagack_document_api_default_handler, this));
}
void CAGACKDocumentApi::query_cag_ack_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_cag_ack(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void CAGACKDocumentApi::query_cag_ack_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
}
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
void CAGACKDocumentApi::cagack_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
this->query_cag_ack(ueId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void CAGACKDocumentApi::cagack_document_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "CAGUpdateAckDocumentApi.h"
#include "Helpers.h"
......@@ -21,65 +22,73 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
CAGUpdateAckDocumentApi::CAGUpdateAckDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
CAGUpdateAckDocumentApi::CAGUpdateAckDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void CAGUpdateAckDocumentApi::init() {
setupRoutes();
}
void CAGUpdateAckDocumentApi::init() { setupRoutes(); }
void CAGUpdateAckDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Put(*router, base + "/subscription-data/:ueId/ue-update-confirmation-data/subscribed-cag", Routes::bind(&CAGUpdateAckDocumentApi::create_cag_update_ack_handler, this));
Routes::Put(
*router,
base +
"/subscription-data/:ueId/ue-update-confirmation-data/subscribed-cag",
Routes::bind(&CAGUpdateAckDocumentApi::create_cag_update_ack_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&CAGUpdateAckDocumentApi::cag_update_ack_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&CAGUpdateAckDocumentApi::cag_update_ack_document_api_default_handler,
this));
}
void CAGUpdateAckDocumentApi::create_cag_update_ack_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the body param
CagAckData cagAckData;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(cagAckData);
this->create_cag_update_ack(ueId, supportedFeatures, cagAckData, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void CAGUpdateAckDocumentApi::create_cag_update_ack_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
}
// Getting the body param
void CAGUpdateAckDocumentApi::cag_update_ack_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
CagAckData cagAckData;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
nlohmann::json::parse(request.body()).get_to(cagAckData);
this->create_cag_update_ack(ueId, supportedFeatures, cagAckData, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
void CAGUpdateAckDocumentApi::cag_update_ack_document_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Class5GVNGroupsInternalDocumentApi.h"
#include "Helpers.h"
......@@ -21,58 +22,68 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
Class5GVNGroupsInternalDocumentApi::Class5GVNGroupsInternalDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
Class5GVNGroupsInternalDocumentApi::Class5GVNGroupsInternalDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void Class5GVNGroupsInternalDocumentApi::init() {
setupRoutes();
}
void Class5GVNGroupsInternalDocumentApi::init() { setupRoutes(); }
void Class5GVNGroupsInternalDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/group-data/5g-vn-groups/internal", Routes::bind(&Class5GVNGroupsInternalDocumentApi::query5_g_vn_group_internal_handler, this));
Routes::Get(*router,
base + "/subscription-data/group-data/5g-vn-groups/internal",
Routes::bind(&Class5GVNGroupsInternalDocumentApi::
query5_g_vn_group_internal_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&Class5GVNGroupsInternalDocumentApi::class5_gvn_groups_internal_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&Class5GVNGroupsInternalDocumentApi::
class5_gvn_groups_internal_document_api_default_handler,
this));
}
void Class5GVNGroupsInternalDocumentApi::query5_g_vn_group_internal_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
void Class5GVNGroupsInternalDocumentApi::query5_g_vn_group_internal_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the query params
auto internalGroupIdsQuery = request.query().get("internal-group-ids");
Pistache::Optional<std::vector<std::string>> internalGroupIds;
if(!internalGroupIdsQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(internalGroupIdsQuery.get(), valueQuery_instance)){
internalGroupIds = Pistache::Some(valueQuery_instance);
}
}
try {
this->query5_g_vn_group_internal(internalGroupIds, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
// Getting the query params
auto internalGroupIdsQuery = request.query().get("internal-group-ids");
Pistache::Optional<std::vector<std::string>> internalGroupIds;
if (!internalGroupIdsQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(internalGroupIdsQuery.get(), valueQuery_instance)) {
internalGroupIds = Pistache::Some(valueQuery_instance);
}
}
try {
this->query5_g_vn_group_internal(internalGroupIds, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void Class5GVNGroupsInternalDocumentApi::class5_gvn_groups_internal_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
}
}
}
void Class5GVNGroupsInternalDocumentApi::
class5_gvn_groups_internal_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Class5GVNGroupsStoreApi.h"
#include "Helpers.h"
......@@ -21,58 +22,63 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
Class5GVNGroupsStoreApi::Class5GVNGroupsStoreApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
Class5GVNGroupsStoreApi::Class5GVNGroupsStoreApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void Class5GVNGroupsStoreApi::init() {
setupRoutes();
}
void Class5GVNGroupsStoreApi::init() { setupRoutes(); }
void Class5GVNGroupsStoreApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/group-data/5g-vn-groups", Routes::bind(&Class5GVNGroupsStoreApi::query5_g_vn_group_handler, this));
Routes::Get(
*router, base + "/subscription-data/group-data/5g-vn-groups",
Routes::bind(&Class5GVNGroupsStoreApi::query5_g_vn_group_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&Class5GVNGroupsStoreApi::class5_gvn_groups_store_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&Class5GVNGroupsStoreApi::class5_gvn_groups_store_api_default_handler,
this));
}
void Class5GVNGroupsStoreApi::query5_g_vn_group_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
void Class5GVNGroupsStoreApi::query5_g_vn_group_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the query params
auto gpsisQuery = request.query().get("gpsis");
Pistache::Optional<std::vector<std::string>> gpsis;
if(!gpsisQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(gpsisQuery.get(), valueQuery_instance)){
gpsis = Pistache::Some(valueQuery_instance);
}
}
try {
this->query5_g_vn_group(gpsis, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
// Getting the query params
auto gpsisQuery = request.query().get("gpsis");
Pistache::Optional<std::vector<std::string>> gpsis;
if (!gpsisQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(gpsisQuery.get(), valueQuery_instance)) {
gpsis = Pistache::Some(valueQuery_instance);
}
}
try {
this->query5_g_vn_group(gpsis, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void Class5GVNGroupsStoreApi::class5_gvn_groups_store_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
}
}
}
void Class5GVNGroupsStoreApi::class5_gvn_groups_store_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Class5GVnGroupConfigurationDocumentApi.h"
#include "Helpers.h"
......@@ -21,55 +22,67 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
Class5GVnGroupConfigurationDocumentApi::Class5GVnGroupConfigurationDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
Class5GVnGroupConfigurationDocumentApi::Class5GVnGroupConfigurationDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void Class5GVnGroupConfigurationDocumentApi::init() {
setupRoutes();
}
void Class5GVnGroupConfigurationDocumentApi::init() { setupRoutes(); }
void Class5GVnGroupConfigurationDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Put(*router, base + "/subscription-data/group-data/5g-vn-groups/:externalGroupId", Routes::bind(&Class5GVnGroupConfigurationDocumentApi::create5_g_vn_group_handler, this));
Routes::Put(
*router,
base + "/subscription-data/group-data/5g-vn-groups/:externalGroupId",
Routes::bind(
&Class5GVnGroupConfigurationDocumentApi::create5_g_vn_group_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&Class5GVnGroupConfigurationDocumentApi::class5_g_vn_group_configuration_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&Class5GVnGroupConfigurationDocumentApi::
class5_g_vn_group_configuration_document_api_default_handler,
this));
}
void Class5GVnGroupConfigurationDocumentApi::create5_g_vn_group_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto externalGroupId = request.param(":externalGroupId").as<std::string>();
// Getting the body param
_5GVnGroupConfiguration r_5GVnGroupConfiguration;
try {
nlohmann::json::parse(request.body()).get_to(r_5GVnGroupConfiguration);
this->create5_g_vn_group(externalGroupId, r_5GVnGroupConfiguration, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void Class5GVnGroupConfigurationDocumentApi::create5_g_vn_group_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto externalGroupId = request.param(":externalGroupId").as<std::string>();
}
// Getting the body param
void Class5GVnGroupConfigurationDocumentApi::class5_g_vn_group_configuration_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
_5GVnGroupConfiguration r_5GVnGroupConfiguration;
try {
nlohmann::json::parse(request.body()).get_to(r_5GVnGroupConfiguration);
this->create5_g_vn_group(externalGroupId, r_5GVnGroupConfiguration,
response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
void Class5GVnGroupConfigurationDocumentApi::
class5_g_vn_group_configuration_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "ContextDataDocumentApi.h"
#include "Helpers.h"
......@@ -21,60 +22,66 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
ContextDataDocumentApi::ContextDataDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
ContextDataDocumentApi::ContextDataDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void ContextDataDocumentApi::init() {
setupRoutes();
}
void ContextDataDocumentApi::init() { setupRoutes(); }
void ContextDataDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/:ueId/context-data", Routes::bind(&ContextDataDocumentApi::query_context_data_handler, this));
Routes::Get(
*router, base + "/subscription-data/:ueId/context-data",
Routes::bind(&ContextDataDocumentApi::query_context_data_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&ContextDataDocumentApi::context_data_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&ContextDataDocumentApi::context_data_document_api_default_handler,
this));
}
void ContextDataDocumentApi::query_context_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto contextDatasetNamesQuery = request.query().get("context-dataset-names");
Pistache::Optional<std::vector<ContextDataSetName>> contextDatasetNames;
if(!contextDatasetNamesQuery.isEmpty()){
// std::vector<ContextDataSetName> valueQuery_instance;
// if(fromStringValue(contextDatasetNamesQuery.get(), valueQuery_instance)){
// contextDatasetNames = Pistache::Some(valueQuery_instance);
// }
}
try {
// this->query_context_data(ueId, contextDatasetNames, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void ContextDataDocumentApi::query_context_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
}
// Getting the query params
auto contextDatasetNamesQuery = request.query().get("context-dataset-names");
Pistache::Optional<std::vector<ContextDataSetName>> contextDatasetNames;
if (!contextDatasetNamesQuery.isEmpty()) {
// std::vector<ContextDataSetName> valueQuery_instance;
// if(fromStringValue(contextDatasetNamesQuery.get(),
// valueQuery_instance)){
// contextDatasetNames = Pistache::Some(valueQuery_instance);
// }
}
void ContextDataDocumentApi::context_data_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
// this->query_context_data(ueId, contextDatasetNames, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void ContextDataDocumentApi::context_data_document_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "Delete5GVnGroupApi.h"
#include "Helpers.h"
......@@ -20,51 +21,55 @@ namespace api {
using namespace org::openapitools::server::helpers;
Delete5GVnGroupApi::Delete5GVnGroupApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
Delete5GVnGroupApi::Delete5GVnGroupApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void Delete5GVnGroupApi::init() {
setupRoutes();
}
void Delete5GVnGroupApi::init() { setupRoutes(); }
void Delete5GVnGroupApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Delete(*router, base + "/subscription-data/group-data/5g-vn-groups/:externalGroupId", Routes::bind(&Delete5GVnGroupApi::delete5_g_vn_group_handler, this));
Routes::Delete(
*router,
base + "/subscription-data/group-data/5g-vn-groups/:externalGroupId",
Routes::bind(&Delete5GVnGroupApi::delete5_g_vn_group_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&Delete5GVnGroupApi::delete5_g_vn_group_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&Delete5GVnGroupApi::delete5_g_vn_group_api_default_handler, this));
}
void Delete5GVnGroupApi::delete5_g_vn_group_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto externalGroupId = request.param(":externalGroupId").as<std::string>();
try {
this->delete5_g_vn_group(externalGroupId, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void Delete5GVnGroupApi::delete5_g_vn_group_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto externalGroupId = request.param(":externalGroupId").as<std::string>();
void Delete5GVnGroupApi::delete5_g_vn_group_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
this->delete5_g_vn_group(externalGroupId, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void Delete5GVnGroupApi::delete5_g_vn_group_api_default_handler(
const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "EnhancedCoverageRestrictionDataApi.h"
#include "Helpers.h"
......@@ -21,64 +22,76 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
EnhancedCoverageRestrictionDataApi::EnhancedCoverageRestrictionDataApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
EnhancedCoverageRestrictionDataApi::EnhancedCoverageRestrictionDataApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void EnhancedCoverageRestrictionDataApi::init() {
setupRoutes();
}
void EnhancedCoverageRestrictionDataApi::init() { setupRoutes(); }
void EnhancedCoverageRestrictionDataApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/:ueId/coverage-restriction-data", Routes::bind(&EnhancedCoverageRestrictionDataApi::query_coverage_restriction_data_handler, this));
Routes::Get(*router,
base + "/subscription-data/:ueId/coverage-restriction-data",
Routes::bind(&EnhancedCoverageRestrictionDataApi::
query_coverage_restriction_data_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&EnhancedCoverageRestrictionDataApi::enhanced_coverage_restriction_data_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&EnhancedCoverageRestrictionDataApi::
enhanced_coverage_restriction_data_api_default_handler,
this));
}
void EnhancedCoverageRestrictionDataApi::query_coverage_restriction_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
// Getting the header params
auto ifNoneMatch = request.headers().tryGetRaw("If-None-Match");
auto ifModifiedSince = request.headers().tryGetRaw("If-Modified-Since");
void EnhancedCoverageRestrictionDataApi::
query_coverage_restriction_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
try {
this->query_coverage_restriction_data(ueId, supportedFeatures, ifNoneMatch, ifModifiedSince, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
}
// Getting the header params
auto ifNoneMatch = request.headers().tryGetRaw("If-None-Match");
auto ifModifiedSince = request.headers().tryGetRaw("If-Modified-Since");
void EnhancedCoverageRestrictionDataApi::enhanced_coverage_restriction_data_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
this->query_coverage_restriction_data(ueId, supportedFeatures, ifNoneMatch,
ifModifiedSince, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void EnhancedCoverageRestrictionDataApi::
enhanced_coverage_restriction_data_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "EventAMFSubscriptionInfoDocumentApi.h"
#include "Helpers.h"
......@@ -20,52 +21,62 @@ namespace api {
using namespace org::openapitools::server::helpers;
EventAMFSubscriptionInfoDocumentApi::EventAMFSubscriptionInfoDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
EventAMFSubscriptionInfoDocumentApi::EventAMFSubscriptionInfoDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void EventAMFSubscriptionInfoDocumentApi::init() {
setupRoutes();
}
void EventAMFSubscriptionInfoDocumentApi::init() { setupRoutes(); }
void EventAMFSubscriptionInfoDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Delete(*router, base + "/subscription-data/:ueId/context-data/ee-subscriptions/:subsId/amf-subscriptions", Routes::bind(&EventAMFSubscriptionInfoDocumentApi::remove_amf_subscriptions_info_handler, this));
Routes::Delete(*router,
base + "/subscription-data/:ueId/context-data/"
"ee-subscriptions/:subsId/amf-subscriptions",
Routes::bind(&EventAMFSubscriptionInfoDocumentApi::
remove_amf_subscriptions_info_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&EventAMFSubscriptionInfoDocumentApi::event_amf_subscription_info_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&EventAMFSubscriptionInfoDocumentApi::
event_amf_subscription_info_document_api_default_handler,
this));
}
void EventAMFSubscriptionInfoDocumentApi::remove_amf_subscriptions_info_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
auto subsId = request.param(":subsId").as<std::string>();
try {
this->remove_amf_subscriptions_info(ueId, subsId, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void EventAMFSubscriptionInfoDocumentApi::remove_amf_subscriptions_info_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
auto subsId = request.param(":subsId").as<std::string>();
void EventAMFSubscriptionInfoDocumentApi::event_amf_subscription_info_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
this->remove_amf_subscriptions_info(ueId, subsId, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
}
void EventAMFSubscriptionInfoDocumentApi::
event_amf_subscription_info_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "EventExposureDataDocumentApi.h"
#include "Helpers.h"
......@@ -21,68 +22,76 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
EventExposureDataDocumentApi::EventExposureDataDocumentApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
EventExposureDataDocumentApi::EventExposureDataDocumentApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void EventExposureDataDocumentApi::init() {
setupRoutes();
}
void EventExposureDataDocumentApi::init() { setupRoutes(); }
void EventExposureDataDocumentApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Get(*router, base + "/subscription-data/:ueId/ee-profile-data", Routes::bind(&EventExposureDataDocumentApi::query_ee_data_handler, this));
Routes::Get(
*router, base + "/subscription-data/:ueId/ee-profile-data",
Routes::bind(&EventExposureDataDocumentApi::query_ee_data_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&EventExposureDataDocumentApi::event_exposure_data_document_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(
Routes::bind(&EventExposureDataDocumentApi::
event_exposure_data_document_api_default_handler,
this));
}
void EventExposureDataDocumentApi::query_ee_data_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto fieldsQuery = request.query().get("fields");
Pistache::Optional<std::vector<std::string>> fields;
if(!fieldsQuery.isEmpty()){
std::vector<std::string> valueQuery_instance;
if(fromStringValue(fieldsQuery.get(), valueQuery_instance)){
fields = Pistache::Some(valueQuery_instance);
}
}
auto supportedFeaturesQuery = request.query().get("supportedFeatures");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
void EventExposureDataDocumentApi::query_ee_data_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueId = request.param(":ueId").as<std::string>();
// Getting the query params
auto fieldsQuery = request.query().get("fields");
Pistache::Optional<std::vector<std::string>> fields;
if (!fieldsQuery.isEmpty()) {
std::vector<std::string> valueQuery_instance;
if (fromStringValue(fieldsQuery.get(), valueQuery_instance)) {
fields = Pistache::Some(valueQuery_instance);
}
try {
this->query_ee_data(ueId, fields, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
auto supportedFeaturesQuery = request.query().get("supportedFeatures");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_ee_data(ueId, fields, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void EventExposureDataDocumentApi::event_exposure_data_document_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
}
}
}
}
void EventExposureDataDocumentApi::
event_exposure_data_document_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "EventExposureGroupSubscriptionsCollectionApi.h"
#include "Helpers.h"
......@@ -21,86 +22,106 @@ namespace api {
using namespace org::openapitools::server::helpers;
using namespace org::openapitools::server::model;
EventExposureGroupSubscriptionsCollectionApi::EventExposureGroupSubscriptionsCollectionApi(std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
EventExposureGroupSubscriptionsCollectionApi::
EventExposureGroupSubscriptionsCollectionApi(
std::shared_ptr<Pistache::Rest::Router> rtr) {
router = rtr;
}
void EventExposureGroupSubscriptionsCollectionApi::init() {
setupRoutes();
}
void EventExposureGroupSubscriptionsCollectionApi::init() { setupRoutes(); }
void EventExposureGroupSubscriptionsCollectionApi::setupRoutes() {
using namespace Pistache::Rest;
using namespace Pistache::Rest;
Routes::Post(*router, base + "/subscription-data/group-data/:ueGroupId/ee-subscriptions", Routes::bind(&EventExposureGroupSubscriptionsCollectionApi::create_ee_group_subscriptions_handler, this));
Routes::Get(*router, base + "/subscription-data/group-data/:ueGroupId/ee-subscriptions", Routes::bind(&EventExposureGroupSubscriptionsCollectionApi::query_ee_group_subscriptions_handler, this));
Routes::Post(*router,
base +
"/subscription-data/group-data/:ueGroupId/ee-subscriptions",
Routes::bind(&EventExposureGroupSubscriptionsCollectionApi::
create_ee_group_subscriptions_handler,
this));
Routes::Get(*router,
base +
"/subscription-data/group-data/:ueGroupId/ee-subscriptions",
Routes::bind(&EventExposureGroupSubscriptionsCollectionApi::
query_ee_group_subscriptions_handler,
this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(&EventExposureGroupSubscriptionsCollectionApi::event_exposure_group_subscriptions_collection_api_default_handler, this));
// Default handler, called when a route is not found
router->addCustomHandler(Routes::bind(
&EventExposureGroupSubscriptionsCollectionApi::
event_exposure_group_subscriptions_collection_api_default_handler,
this));
}
void EventExposureGroupSubscriptionsCollectionApi::create_ee_group_subscriptions_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueGroupId = request.param(":ueGroupId").as<std::string>();
// Getting the body param
EeSubscription eeSubscription;
try {
nlohmann::json::parse(request.body()).get_to(eeSubscription);
this->create_ee_group_subscriptions(ueGroupId, eeSubscription, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
void EventExposureGroupSubscriptionsCollectionApi::
create_ee_group_subscriptions_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueGroupId = request.param(":ueGroupId").as<std::string>();
}
void EventExposureGroupSubscriptionsCollectionApi::query_ee_group_subscriptions_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueGroupId = request.param(":ueGroupId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if(!supportedFeaturesQuery.isEmpty()){
std::string valueQuery_instance;
if(fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)){
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_ee_group_subscriptions(ueGroupId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
//send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
//send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
// Getting the body param
}
EeSubscription eeSubscription;
void EventExposureGroupSubscriptionsCollectionApi::event_exposure_group_subscriptions_collection_api_default_handler(const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found, "The requested method does not exist");
try {
nlohmann::json::parse(request.body()).get_to(eeSubscription);
this->create_ee_group_subscriptions(ueGroupId, eeSubscription, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
void EventExposureGroupSubscriptionsCollectionApi::
query_ee_group_subscriptions_handler(
const Pistache::Rest::Request &request,
Pistache::Http::ResponseWriter response) {
// Getting the path params
auto ueGroupId = request.param(":ueGroupId").as<std::string>();
// Getting the query params
auto supportedFeaturesQuery = request.query().get("supported-features");
Pistache::Optional<std::string> supportedFeatures;
if (!supportedFeaturesQuery.isEmpty()) {
std::string valueQuery_instance;
if (fromStringValue(supportedFeaturesQuery.get(), valueQuery_instance)) {
supportedFeatures = Pistache::Some(valueQuery_instance);
}
}
try {
this->query_ee_group_subscriptions(ueGroupId, supportedFeatures, response);
} catch (nlohmann::detail::exception &e) {
// send a 400 error
response.send(Pistache::Http::Code::Bad_Request, e.what());
return;
} catch (Pistache::Http::HttpError &e) {
response.send(static_cast<Pistache::Http::Code>(e.code()), e.what());
return;
} catch (std::exception &e) {
// send a 500 error
response.send(Pistache::Http::Code::Internal_Server_Error, e.what());
return;
}
}
}
}
void EventExposureGroupSubscriptionsCollectionApi::
event_exposure_group_subscriptions_collection_api_default_handler(
const Pistache::Rest::Request &,
Pistache::Http::ResponseWriter response) {
response.send(Pistache::Http::Code::Not_Found,
"The requested method does not exist");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/**
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
* Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
* ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 2.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
#include "AMFNon3GPPAccessRegistrationDocumentApiImpl.h"
......@@ -19,22 +20,32 @@ namespace api {
using namespace org::openapitools::server::model;
AMFNon3GPPAccessRegistrationDocumentApiImpl::AMFNon3GPPAccessRegistrationDocumentApiImpl(std::shared_ptr<Pistache::Rest::Router> rtr)
: AMFNon3GPPAccessRegistrationDocumentApi(rtr)
{ }
AMFNon3GPPAccessRegistrationDocumentApiImpl::
AMFNon3GPPAccessRegistrationDocumentApiImpl(
std::shared_ptr<Pistache::Rest::Router> rtr)
: AMFNon3GPPAccessRegistrationDocumentApi(rtr) {}
void AMFNon3GPPAccessRegistrationDocumentApiImpl::amf_context_non3gpp(const std::string &ueId, const std::vector<PatchItem> &patchItem, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void AMFNon3GPPAccessRegistrationDocumentApiImpl::create_amf_context_non3gpp(const std::string &ueId, const AmfNon3GppAccessRegistration &amfNon3GppAccessRegistration, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void AMFNon3GPPAccessRegistrationDocumentApiImpl::query_amf_context_non3gpp(const std::string &ueId, const Pistache::Optional<std::vector<std::string>> &fields, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
}
void AMFNon3GPPAccessRegistrationDocumentApiImpl::amf_context_non3gpp(
const std::string &ueId, const std::vector<PatchItem> &patchItem,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void AMFNon3GPPAccessRegistrationDocumentApiImpl::create_amf_context_non3gpp(
const std::string &ueId,
const AmfNon3GppAccessRegistration &amfNon3GppAccessRegistration,
Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
void AMFNon3GPPAccessRegistrationDocumentApiImpl::query_amf_context_non3gpp(
const std::string &ueId,
const Pistache::Optional<std::vector<std::string>> &fields,
const Pistache::Optional<std::string> &supportedFeatures,
Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
}
} // namespace api
} // namespace server
} // namespace openapitools
} // namespace org
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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