MSVC C26800 warned us std::vector and std::string are not guaranteed to be cleared after being moved from in all standard C++ implementations. As we reuse those objects and rely they are cleared, do an explicit clear. We could have one-time-use objects and add scopes, but that makes code ugly. Reference: https://stackoverflow.com/a/17735913/2071884 Signed-off-by: Simon Rozman <simon@rozman.si>
ZRCola Web Service
Building and Installation
-
Install prerequisites:
sudo dnf install git cmake gcc gcc-c++ make libatomic
-
Clone this Git repository:
git clone --recursive https://github.com/Amebis/ZRCola.git
-
Build ZRColaWS:
make -C ZRCola/ZRColaWS
-
Install ZRColaWS:
sudo make -C ZRCola/ZRColaWS install
-
Configure ZRColaWS by editing /usr/local/etc/sysconfig/zrcolaws
-
Start ZRColaWS:
sudo systemctl start zrcolaws.service
-
Configure ZRColaWS for auto-start:
sudo systemctl enable zrcolaws.service
-
Remember to open webservice port in firewall, should the service require external access.
Usage
Web service API documentation is available at http://host:port/swagger/ui.