Create a directory for your Hello World application and then switch to it:
mkdir hello-world cd hello-world
Create the application:
sudo mgrg -i -u $(whoami) hello
Create a file hello_world.gliim:
vim hello_world.gliim
and copy this code to it:
begin-handler /hello-world get-param name @This is Hello World from <<p-out name>> end-handler
This service takes input parameter "name" (see get-param), and then outputs it along with a greeting message (see output-statement).
Compile the application:
gg -q
Run the application by executing this service from command line. Note passing the input parameter "name" with value "Mike":
gg -r --req="/hello-world/name=Mike" --exec --silent-header
The output is:
This is Hello World from Mike