Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF-Simple
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
CommunityXG
OpenXG-SMF-Simple
Commits
a750aa69
Commit
a750aa69
authored
Oct 09, 2020
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get API version for NsmfEventExposure
parent
c77a9a40
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
src/api-server/api/IndividualSubscriptionDocumentApi.cpp
src/api-server/api/IndividualSubscriptionDocumentApi.cpp
+6
-3
src/api-server/api/IndividualSubscriptionDocumentApi.h
src/api-server/api/IndividualSubscriptionDocumentApi.h
+1
-1
src/api-server/api/SubscriptionsCollectionApi.cpp
src/api-server/api/SubscriptionsCollectionApi.cpp
+4
-1
src/api-server/api/SubscriptionsCollectionApi.h
src/api-server/api/SubscriptionsCollectionApi.h
+1
-1
No files found.
src/api-server/api/IndividualSubscriptionDocumentApi.cpp
View file @
a750aa69
...
...
@@ -12,6 +12,9 @@
#include "IndividualSubscriptionDocumentApi.h"
#include "Helpers.h"
#include "smf_config.hpp"
extern
smf
::
smf_config
smf_cfg
;
namespace
oai
{
namespace
smf_server
{
...
...
@@ -31,9 +34,9 @@ void IndividualSubscriptionDocumentApi::init() {
void
IndividualSubscriptionDocumentApi
::
setupRoutes
()
{
using
namespace
Pistache
::
Rest
;
Routes
::
Delete
(
*
router
,
base
+
"/subscriptions/:subId"
,
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
delete_individual_subcription_handler
,
this
));
Routes
::
Get
(
*
router
,
base
+
"/subscriptions/:subId"
,
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
get_individual_subcription_handler
,
this
));
Routes
::
Put
(
*
router
,
base
+
"/subscriptions/:subId"
,
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
replace_individual_subcription_handler
,
this
));
Routes
::
Delete
(
*
router
,
base
+
smf_cfg
.
sbi_api_version
+
"/subscriptions/:subId"
,
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
delete_individual_subcription_handler
,
this
));
Routes
::
Get
(
*
router
,
base
+
smf_cfg
.
sbi_api_version
+
"/subscriptions/:subId"
,
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
get_individual_subcription_handler
,
this
));
Routes
::
Put
(
*
router
,
base
+
smf_cfg
.
sbi_api_version
+
"/subscriptions/:subId"
,
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
replace_individual_subcription_handler
,
this
));
// Default handler, called when a route is not found
router
->
addCustomHandler
(
Routes
::
bind
(
&
IndividualSubscriptionDocumentApi
::
individual_subscription_document_api_default_handler
,
this
));
...
...
src/api-server/api/IndividualSubscriptionDocumentApi.h
View file @
a750aa69
...
...
@@ -41,7 +41,7 @@ public:
virtual
~
IndividualSubscriptionDocumentApi
()
{}
void
init
();
const
std
::
string
base
=
"/nsmf_event-exposure/
v1
"
;
const
std
::
string
base
=
"/nsmf_event-exposure/"
;
private:
void
setupRoutes
();
...
...
src/api-server/api/SubscriptionsCollectionApi.cpp
View file @
a750aa69
...
...
@@ -12,6 +12,9 @@
#include "SubscriptionsCollectionApi.h"
#include "Helpers.h"
#include "smf_config.hpp"
extern
smf
::
smf_config
smf_cfg
;
namespace
oai
{
namespace
smf_server
{
...
...
@@ -31,7 +34,7 @@ void SubscriptionsCollectionApi::init() {
void
SubscriptionsCollectionApi
::
setupRoutes
()
{
using
namespace
Pistache
::
Rest
;
Routes
::
Post
(
*
router
,
base
+
"/subscriptions"
,
Routes
::
bind
(
&
SubscriptionsCollectionApi
::
create_individual_subcription_handler
,
this
));
Routes
::
Post
(
*
router
,
base
+
smf_cfg
.
sbi_api_version
+
"/subscriptions"
,
Routes
::
bind
(
&
SubscriptionsCollectionApi
::
create_individual_subcription_handler
,
this
));
// Default handler, called when a route is not found
router
->
addCustomHandler
(
Routes
::
bind
(
&
SubscriptionsCollectionApi
::
subscriptions_collection_api_default_handler
,
this
));
...
...
src/api-server/api/SubscriptionsCollectionApi.h
View file @
a750aa69
...
...
@@ -40,7 +40,7 @@ public:
virtual
~
SubscriptionsCollectionApi
()
{}
void
init
();
const
std
::
string
base
=
"/nsmf_event-exposure/
v1
"
;
const
std
::
string
base
=
"/nsmf_event-exposure/"
;
private:
void
setupRoutes
();
...
...
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