# go to examples/hello_worldexample01 and start the service
cd soajs.examples/hello_worldexample01/
# start the soajs example environment
sudo soajs services start --env=example
# export necessary environment variables to create local awareness
export SOAJS_ENV=EXAMPLE
export SOAJS_SRVPORT=4021
export SOAJS_DEPLOY_MANUAL=1
export SOAJS_REGISTRY_API=127.0.0.1:21000
# start service
node .
...
The first API to test is the "TestGet". In this scenario, the request is sent with only the "firstName" input. The request does not contain the second mandatory input: "lastName". So we expect the response to return with an error.
Code Block
language
bashjs
title
TestGet request: Missing Last Name
curl -X GET "http://127.0.0.1:4021/testGet?firstName=John"