From dd77f7e288f81ddd256cffeb865c6bdbd837f6f0 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Fri, 28 Aug 2015 20:22:55 +0300 Subject: [PATCH] configuration: Add the API configuration to the general configuration This adds the API configuration parameters to the configurtion, so it will be possible to take them from the configuration file or from the command line. The following configuration were defined: api_port api_addres api_ui_dir api_doc_dir Signed-off-by: Amnon Heiman --- db/config.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/config.hh b/db/config.hh index c39142d690..3a9d173360 100644 --- a/db/config.hh +++ b/db/config.hh @@ -691,6 +691,10 @@ public: val(enable_cache, bool, true, Used, "Enable cache") \ val(enable_commitlog, bool, true, Used, "Enable commitlog") \ val(volatile_system_keyspace_for_testing, bool, false, Used, "Don't persist system keyspace - testing only!") \ + val(api_port, uint16_t, 10000, Used, "Http Rest API port") \ + val(api_addres, sstring, "", Used, "Http Rest API address") \ + val(api_ui_dir, sstring, "swagger-ui/dist/", Used, "The directory location of the API GUI") \ + val(api_doc_dir, sstring, "api/api-doc/", Used, "The API definition file directory") \ /* done! */ #define _make_value_member(name, type, deflt, status, desc, ...) \