Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-udr
Commits
6aa2fa65
Commit
6aa2fa65
authored
Jun 30, 2021
by
Tien-Thinh Nguyen
Browse files
Code cleanup
parent
37341121
Changes
5
Show whitespace changes
Inline
Side-by-side
src/api_server/api/AccessAndMobilitySubscriptionDataDocumentApi.cpp
View file @
6aa2fa65
...
...
@@ -74,8 +74,6 @@ void AccessAndMobilitySubscriptionDataDocumentApi::query_am_data_handler(
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
servingPlmnId
=
request
.
param
(
":servingPlmnId"
).
as
<
std
::
string
>
();
// std::cout<<"********* servingPlmnId ********* "<<servingPlmnId<<std::endl;
// Getting the query params
auto
fieldsQuery
=
request
.
query
().
get
(
"fields"
);
Pistache
::
Optional
<
std
::
vector
<
std
::
string
>>
fields
;
...
...
src/api_server/api/AuthenticationStatusDocumentApi.cpp
View file @
6aa2fa65
...
...
@@ -91,8 +91,6 @@ void AuthenticationStatusDocumentApi::create_authentication_status_handler(
AuthEvent
authEvent
;
// std::cout << request.body() << std::endl;
try
{
nlohmann
::
json
::
parse
(
request
.
body
()).
get_to
(
authEvent
);
this
->
create_authentication_status
(
ueId
,
authEvent
,
response
);
...
...
src/api_server/api/SMFRegistrationDocumentApi.cpp
View file @
6aa2fa65
...
...
@@ -114,7 +114,7 @@ void SMFRegistrationDocumentApi::create_smf_context_non3gpp_handler(
void
SMFRegistrationDocumentApi
::
delete_smf_context_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFRegistration Method: DELETE!
"
);
Logger
::
udr_server
().
debug
(
"Handle Delete SMF Context Request
"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
...
...
@@ -138,7 +138,7 @@ void SMFRegistrationDocumentApi::delete_smf_context_handler(
void
SMFRegistrationDocumentApi
::
query_smf_registration_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"
SMFRegistration
Method: GET!
"
);
Logger
::
udr_server
().
debug
(
"Handle Query
SMF
Registration"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
...
...
src/api_server/api/SMFSelectionSubscriptionDataDocumentApi.cpp
View file @
6aa2fa65
...
...
@@ -70,7 +70,8 @@ void SMFSelectionSubscriptionDataDocumentApi::setupRoutes() {
void
SMFSelectionSubscriptionDataDocumentApi
::
query_smf_select_data_handler
(
const
Pistache
::
Rest
::
Request
&
request
,
Pistache
::
Http
::
ResponseWriter
response
)
{
Logger
::
udr_server
().
info
(
"SMFSelectionSubscriptionData Method: GET!"
);
Logger
::
udr_server
().
debug
(
"Handle Query SMF Select Data"
);
// Getting the path params
auto
ueId
=
request
.
param
(
":ueId"
).
as
<
std
::
string
>
();
auto
servingPlmnId
=
request
.
param
(
":servingPlmnId"
).
as
<
std
::
string
>
();
...
...
src/api_server/impl/SessionManagementSubscriptionDataApiImpl.cpp
View file @
6aa2fa65
...
...
@@ -57,7 +57,6 @@ void SessionManagementSubscriptionDataApiImpl::query_sm_data(
const
Pistache
::
Optional
<
Pistache
::
Http
::
Header
::
Raw
>
&
ifNoneMatch
,
const
Pistache
::
Optional
<
Pistache
::
Http
::
Header
::
Raw
>
&
ifModifiedSince
,
Pistache
::
Http
::
ResponseWriter
&
response
)
{
// response.send(Pistache::Http::Code::Ok, "query_sm_data\n");
// servingPlmnId pattern: "^[0-9]{5,6}$"
Snssai
snssai
=
{};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment