/**
* Nudsf_DataRepository
* Nudsf Data Repository Service. © 2021, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. 
*
* The version of the OpenAPI document: 1.1.0-alpha.2
* 
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
 * RecordCRUDApi.h
 *
 * 
 */

#ifndef _PLUGIN_API_H_
#define _PLUGIN_API_H_


#include <pistache/http.h>
#include <pistache/router.h>
#include <pistache/http_headers.h>
#include <pistache/optional.h>

#include <string>
#include <vector>
#include "TransData.hpp"
#include <iostream>
#include <stdlib.h>

namespace org {
namespace openapitools {
namespace server {
namespace api {

using namespace org::openapitools::server::model;

class  PluginApi {
public:
    PluginApi(std::shared_ptr<Pistache::Rest::Router>);
    virtual ~PluginApi() {}
    void init();

    const std::string base = "/nplugin-dr/v1";

private:
    void setupRoutes();

    // void create_or_modify_record_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    // void delete_record_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    // void get_meta_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    // void get_record_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    void N2_trans_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    void algorithm_omf_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    // void update_meta_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
   // void record_crud_api_default_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    void modify_AmfIP_handler(const Pistache::Rest::Request &request, Pistache::Http::ResponseWriter response);
    std::shared_ptr<Pistache::Rest::Router> router;     

    virtual void n2_trans_to_gnb(const std::uint32_t &assoc_id, const uint16_t &stream, TransData &transdata, Pistache::Http::ResponseWriter &response) = 0;
    virtual void modify_AmfIP(const std::string &amfip, const unsigned int &amfport, Pistache::Http::ResponseWriter &response) = 0;

  
};

}
}
}
}

#endif /* RecordCRUDApi_H_ */

