Commit a2682f1d authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Update HTTP response for unsupported method

parent 745bfd31
......@@ -33,6 +33,7 @@
*/
#include "AuthenticationResultDeletionApiImpl.h"
#include "logger.hpp"
namespace org {
namespace openapitools {
......@@ -50,11 +51,17 @@ AuthenticationResultDeletionApiImpl::AuthenticationResultDeletionApiImpl(
void AuthenticationResultDeletionApiImpl::delete5g_aka_authentication_result(
const std::string& authCtxId, Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
Logger::ausf_server().info("delete5g_aka_authentication_result");
response.send(
Pistache::Http::Code::Not_Implemented,
"delete5g_aka_authentication_result API has not been implemented yet!\n");
}
void AuthenticationResultDeletionApiImpl::delete_eap_authentication_result(
const std::string& authCtxId, Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
Logger::ausf_server().info("delete_eap_authentication_result");
response.send(
Pistache::Http::Code::Not_Implemented,
"delete_eap_authentication_result API has not been implemented yet!\n");
}
} // namespace api
......
......@@ -91,13 +91,19 @@ DefaultApiImpl::DefaultApiImpl(
void DefaultApiImpl::eap_auth_method(
const std::string& authCtxId, const EapSession& eapSession,
Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
Logger::ausf_server().info("eap_auth_method");
response.send(
Pistache::Http::Code::Not_Implemented,
"eap_auth_method API has not been implemented yet!\n");
}
void DefaultApiImpl::rg_authentications_post(
const RgAuthenticationInfo& rgAuthenticationInfo,
Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
Logger::ausf_server().info("rg_authentications_post");
response.send(
Pistache::Http::Code::Not_Implemented,
"rg_authentications_post API has not been implemented yet!\n");
}
void DefaultApiImpl::ue_authentications_auth_ctx_id5g_aka_confirmation_put(
......@@ -252,7 +258,10 @@ void DefaultApiImpl::ue_authentications_auth_ctx_id5g_aka_confirmation_put(
void DefaultApiImpl::ue_authentications_deregister_post(
const DeregistrationInfo& deregistrationInfo,
Pistache::Http::ResponseWriter& response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n");
Logger::ausf_server().info("ue_authentications_deregister_post");
response.send(
Pistache::Http::Code::Not_Implemented,
"ue_authentications_deregister_post API has not been implemented yet!\n");
}
void DefaultApiImpl::ue_authentications_post(
......
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