/**
 * Nudm_UEAU
 * UDM UE Authentication Service. � 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 1.2.0-alpha.1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator
 * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
 * the class manually.
 */
/*
 * GenerateAuthDataApi.h
 *
 *
 */

#ifndef GenerateAuthDataApi_H_
#define GenerateAuthDataApi_H_

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

#include "AuthenticationInfoRequest.h"
#include "AuthenticationInfoResult.h"
#include "PatchItem.h"
#include "ProblemDetails.h"
#include "SequenceNumber.h"
#include <string>

namespace oai {
namespace udm {
namespace api {

using namespace oai::udm::model;

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

  const std::string base = "/nudm-ueau/v1";

private:
  void setupRoutes();

  void generate_auth_data_handler(const Pistache::Rest::Request &request,
                                  Pistache::Http::ResponseWriter response);
  void generate_auth_data_api_default_handler(
      const Pistache::Rest::Request &request,
      Pistache::Http::ResponseWriter response);

  std::shared_ptr<Pistache::Rest::Router> router;

  /// <summary>
  /// Generate authentication data for the UE
  /// </summary>
  /// <remarks>
  ///
  /// </remarks>
  /// <param name="supiOrSuci">SUPI or SUCI of the user</param>
  /// <param name="authenticationInfoRequest"></param>
  virtual void
  generate_auth_data(const std::string &supiOrSuci,
                     const AuthenticationInfoRequest &authenticationInfoRequest,
                     Pistache::Http::ResponseWriter &response) = 0;
};

} // namespace api
} // namespace udm
} // namespace oai

#endif /* GenerateAuthDataApi_H_ */
