Commit 501b3432 authored by yangjian's avatar yangjian

Update Amf3GppAccessRegistration

parent 0f6f3b6f
...@@ -24,13 +24,35 @@ AMF3GPPAccessRegistrationDocumentApiImpl::AMF3GPPAccessRegistrationDocumentApiIm ...@@ -24,13 +24,35 @@ AMF3GPPAccessRegistrationDocumentApiImpl::AMF3GPPAccessRegistrationDocumentApiIm
{ } { }
void AMF3GPPAccessRegistrationDocumentApiImpl::amf_context3gpp(const std::string &ueId, const std::vector<PatchItem> &patchItem, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response) { void AMF3GPPAccessRegistrationDocumentApiImpl::amf_context3gpp(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");
/************************ test ************************/
nlohmann::json j,j1;
for(int i=0;i<patchItem.size();i++)
{
to_json(j1,patchItem[i]);
j+=j1;
}
response.send(Pistache::Http::Code::Ok, j.dump());
/******************************************************/
//1.modify handler
//2.modify success
//3.send PatchResult
//response.send(Pistache::Http::Code::Ok, j.dump());
} }
void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(const std::string &ueId, const Amf3GppAccessRegistration &amf3GppAccessRegistration, Pistache::Http::ResponseWriter &response) { void AMF3GPPAccessRegistrationDocumentApiImpl::create_amf_context3gpp(const std::string &ueId, const Amf3GppAccessRegistration &amf3GppAccessRegistration, Pistache::Http::ResponseWriter &response) {
response.send(Pistache::Http::Code::Ok, "Do some magic\n"); //response.send(Pistache::Http::Code::Ok, "Do some magic\n");
/************************ test ************************/
nlohmann::json j;
to_json(j,amf3GppAccessRegistration);
response.send(Pistache::Http::Code::Created, j.dump());
//response.send(Pistache::Http::Code::Ok, "Do some magic hello\n");
/******************************************************/
} }
void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(const std::string &ueId, const Pistache::Optional<std::vector<std::string>> &fields, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response) { void AMF3GPPAccessRegistrationDocumentApiImpl::query_amf_context3gpp(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"); response.send(Pistache::Http::Code::Ok, "query_amf_context3gpp\n");
} }
} }
......
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