Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
dSS - digitalSTROM Server
dss-mainline
Commits
fd8b10e6
Commit
fd8b10e6
authored
6 years ago
by
Branislav Katreniak
Browse files
Options
Download
Patches
Plain Diff
dsApi/router: add resources to integration test
parent
1630f166
master
DSD-10252-heatbeat-increase-for-dutch-p1-support
DSD-10490-crash
DSD-11013-wrong-dutch-translation
DSD-7417
JEAN_P1_MASTER
MR_GroupID_instead_DeviceClasses
MR_convert_deviceinterfaceqeuesthandler_test
MR_cross-compile_dss20
MR_device_AutomationInputMode_none
MR_device_setBinaryType
MR_docker-dss11gb-toolchain
MR_drop_boost_filesystem
MR_getModelFeatures2
MR_hardwareType_cleanup
MR_install_libds_as_shared_library
MR_metering_storage
MR_metering_webscocket
MR_open_metering_system_archive
MR_openapi_configuration
MR_p1_metering
MR_pairing-button_3
MR_prepare_public_api_sync
MR_produced-energy
MR_std--shared_ptr
MR_sync_open_metering_system
R1902
R1904
R1906
R1908
R1911
R2002
R2004
R2006
R2008
R2011
R2102
R2106
R2111
R2204
R2207
R2210
R2303
R2309
R2311
R2411
bka-docker
bugfix/DSD-10490-fix-crash
bugfix/DSD-3172-support-umr200-config_3_7_0
cherry-pick-76f3d2ce
cherry-pick-921e00cb
cherry-pick-921e00cb-2
feature/DSD-10170-support-area-names
jeanvisagie/dss-mainline-p1_crc
mock_api_endpoints
no_proxy
revert-c81752f2
test_yocto_CI
testing
testing_safe
update_ubuntu
weather_api
1.19.11
1.19.11-beta01
1.19.10.1
1.19.10.1-beta01
1.19.10
1.19.9
1.19.9-beta03
1.19.9-beta02
1.19.9-beta01
1.19.8.1
1.19.8
1.19.8-beta03
1.19.8-beta02
1.19.8-beta01
1.19.7.1
1.19.7
1.19.7-beta07
1.19.7-beta06
1.19.7-beta05
1.19.7-beta04
1.19.7-beta03
1.19.7-beta02
1.19.7-beta01
1.19.6.3
1.19.6.2
1.19.6.1
1.19.6.1-beta01
1.19.6
1.19.6-beta03
1.19.6-beta02
1.19.6-beta01
1.19.5.1
1.19.5.1-beta02
1.19.5.1-beta01
1.19.5
1.19.5-beta03
1.19.5-beta02
1.19.5-beta01
1.19.4
1.19.4-beta04
1.19.4-beta03
1.19.4-beta02
1.19.4-beta01
1.19.3.1
1.19.3.1-beta01
1.19.3
1.19.3-beta06
1.19.3-beta05
1.19.3-beta04
1.19.3-beta03
1.19.3-beta02
1.19.3-beta01
1.19.2.1
1.19.2
1.19.2-beta02
1.19.2-beta01
1.19.1
1.19.1-beta02
1.19.1-beta01
1.19.0
1.19.0-beta03
1.19.0-beta02
1.19.0-beta01
1.18.0
1.18.0-beta04
1.18.0-beta03
1.18.0-beta02
1.18.0-beta01
1.17.0
1.17.0-beta05
1.17.0-beta04
1.17.0-beta03
1.17.0-beta02
1.17.0-beta01
1.16.7
1.16.7-beta04
1.16.7-beta03
1.16.7-beta02
1.16.7-beta01
1.16.6.1
1.16.6.1-beta01
1.16.6
1.16.6-beta04
1.16.6-beta03
1.16.6-beta02
1.16.6-beta01
1.16.5
1.16.5-beta07
1.16.5-beta06
1.16.5-beta05
1.16.5-beta04
1.16.5-beta03
1.16.5-beta02
1.16.5-beta01
1.16.4
1.16.4-beta06
1.16.4-beta05
1.16.4-beta04
1.16.4-beta03
1.16.4-beta02
1.16.4-beta01
1.16.3
1.16.3-beta08
1.16.3-beta07
1.16.3-beta06
1.16.3-beta05
1.16.3-beta04
1.16.3-beta03
1.16.3-beta02
1.16.3-beta01
1.16.2.1
1.16.2.1-beta01
1.16.2
1.16.2-beta07
1.16.2-beta06
1.16.2-beta05
1.16.2-beta04
1.16.2-beta03
1.16.2-beta02
1.16.2-beta01
1.16.1.1
1.16.1
1.16.1-beta05
1.16.1-beta04
1.16.1-beta03
1.16.1-beta02
1.16.1-beta01
v1.54.2
v1.54.1
v1.54.0
v1.53.0
v1.52.1
v1.52.0
v1.51.1
v1.51.0
1 merge request
!1318
Bka connector
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ds-api/router.cpp
+12
-0
src/ds-api/router.cpp
with
12 additions
and
0 deletions
+12
-0
src/ds-api/router.cpp
+
12
−
0
View file @
fd8b10e6
...
...
@@ -72,6 +72,18 @@ std::unique_ptr<Router> makeTestService() {
DS_NOTICE
(
"Not implemented."
);
handler
(
dsApi
::
errorNotImplemented
());
}};
result
->
routes
[
"/empty"
]
=
{
.
asyncInvoke
=
[](
std
::
string
&&
path
,
dsApi
::
HttpArgs
&&
,
std
::
function
<
void
(
dsApi
::
HttpResult
&&
)
>&&
handler
)
{
DS_NOTICE
(
"item."
);
handler
({.
status
=
200
,
.
content
=
ds
::
toJsonFragment
(
path
)});
}};
result
->
routes
[
"/emptyWildcard"
]
=
{
.
asyncInvoke
=
[](
std
::
string
&&
path
,
dsApi
::
HttpArgs
&&
,
std
::
function
<
void
(
dsApi
::
HttpResult
&&
)
>&&
handler
)
{
DS_NOTICE
(
"item."
);
handler
({.
status
=
200
,
.
content
=
ds
::
toJsonFragment
(
path
)});
},
.
isWildcard
=
true
};
return
result
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets