This is a web service that return the kernel version of server based on Duda web service framework.
This web service(kernel_version) reads information from file /proc/version and prints the required version information.
clone this repository:
git clone https://github.com/swpd/kernel_version.git
use DudaC to set up this web service, it makes running web service an easy task. if you haven't set up DudaC, check out this.
change to DudaC's directory:
cd dudac/
run the web service:
./dudac -w /path/to/kernel_version/
for example, if you have kernel_version repo downloaded in your home directory, run the following command:
./dudac -w ~/kernel_version/
yes, that's it. if no errors occur our web service shall be up and running.
use your favorite client to visit the following URL to retrieve the version information of server:
https://localhost:2001/kernel_version/