Newer
Older
* Npcf_SMPolicyControl API
* Session Management Policy Control Service © 2020, 3GPP Organizational
* Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.1.alpha-5
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
* the class manually.
*/
* SMPoliciesCollectionApiImpl.h
*
*
*/
#include <pistache/endpoint.h>
#include <pistache/http.h>
#include <pistache/router.h>
#include <memory>
#include <optional>
#include <SMPoliciesCollectionApi.h>
#include "ProblemDetails.h"
#include "SmPolicyContextData.h"
#include "SmPolicyDecision.h"
Stefan Spettel
committed
#include "pcf_sm_policy_control.hpp"
#include "sm_policies_collection_api_handler.h"
namespace oai::pcf::api {
using namespace oai::model::pcf;
class SMPoliciesCollectionApiImpl
: public oai::pcf::api::SMPoliciesCollectionApi {
public:
explicit SMPoliciesCollectionApiImpl(
Stefan Spettel
committed
const std::shared_ptr<Pistache::Rest::Router>& rtr,
const std::shared_ptr<app::pcf_smpc>& smpc_service,
const std::string& address);
~SMPoliciesCollectionApiImpl() override = default;
void create_sm_policy(
const SmPolicyContextData& smPolicyContextData,
Pistache::Http::ResponseWriter& response) override;
Stefan Spettel
committed
private:
std::shared_ptr<sm_policies_collection_api_handler> m_api_handler;
} // namespace oai::pcf::api