Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-NRF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-NRF
Commits
14dcfa72
Commit
14dcfa72
authored
Jan 08, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for NFUpdate
parent
a1eb161a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/api-server/impl/NFInstanceIDDocumentApiImpl.cpp
src/api-server/impl/NFInstanceIDDocumentApiImpl.cpp
+10
-3
No files found.
src/api-server/impl/NFInstanceIDDocumentApiImpl.cpp
View file @
14dcfa72
...
@@ -120,7 +120,13 @@ void NFInstanceIDDocumentApiImpl::register_nf_instance(
...
@@ -120,7 +120,13 @@ void NFInstanceIDDocumentApiImpl::register_nf_instance(
to_json
(
json_data
,
problem_details
);
to_json
(
json_data
,
problem_details
);
content_type
=
"application/problem+json"
;
content_type
=
"application/problem+json"
;
}
else
{
}
else
{
to_json
(
json_data
,
nFProfile
);
std
::
shared_ptr
<
nrf_profile
>
profile
=
m_nrf_app
->
find_nf_profile
(
nfInstanceID
);
if
(
profile
.
get
()
!=
nullptr
)
{
profile
.
get
()
->
to_json
(
json_data
);
//to_json(json_data, nFProfile);
}
// Location header
// Location header
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
Location
>
(
response
.
headers
().
add
<
Pistache
::
Http
::
Header
::
Location
>
(
m_address
+
base
+
nrf_cfg
.
sbi_api_version
+
"/nf-instances/"
+
m_address
+
base
+
nrf_cfg
.
sbi_api_version
+
"/nf-instances/"
+
...
@@ -157,6 +163,7 @@ void NFInstanceIDDocumentApiImpl::update_nf_instance(
...
@@ -157,6 +163,7 @@ void NFInstanceIDDocumentApiImpl::update_nf_instance(
to_json
(
json_data
,
problem_details
);
to_json
(
json_data
,
problem_details
);
content_type
=
"application/problem+json"
;
content_type
=
"application/problem+json"
;
}
else
if
(
http_code
==
HTTP_STATUS_CODE_200_OK
)
{
}
else
if
(
http_code
==
HTTP_STATUS_CODE_200_OK
)
{
if
(
profile
.
get
()
!=
nullptr
)
// convert the profile to Json
// convert the profile to Json
profile
.
get
()
->
to_json
(
json_data
);
profile
.
get
()
->
to_json
(
json_data
);
}
}
...
...
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