Skip to content

Common rest server

Ghost User requested to merge CommonRestServer into master
  • NOTE: Requires a fresh reinstall of dcdb as Boost upgraded to 1.70
  • Deploys a common RESTHttpsServer, which should be inherited to implement a RestAPI
  • Switches from cpp-netlib to boost.beast for RestAPI https server (Implies a boost upgrade to a recent version that includes beast)
  • Introduces an overall change of the RestAPI URI design: exchangeable names like plugins, sensors, analyzers, etc. are no longer used in the path but are now appended as query
  • e.g. 127.0.0.1:8000/stop/sysfs --> 127.0.0.1:8000/stop?plugin=sysfs
  • Instead of tokens the standardized HTTP Basic Authentication is used for access control
  • Outstanding TODO: adapt collectagent/analytics to use the new RESTHttpsServer and URI design for RestAPI
Edited by Ghost User

Merge request reports