Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example is a request to the testGet API, without providing the required authentication credentials.

Code Block
languagebash
# go to controller directory 
cd /opt/soajs/node_modules/soajs.controller

# export necessary environment variables 
export SOAJS_PROFILE=/opt/soajs/node_modules/soajs.utilities/data/getStarted/profile.js 
export SOAJS_ENV=test 
export SOAJS_SRVIP=127.0.0.1 

# start service 
node .

# hit the API
curl -X GET "http://127.0.0.1:4000/example02/buildName?firstName=John&lastName=Smith"

...