...
Code Block | ||||
---|---|---|---|---|
| ||||
# go to directory and install oauth
cd /opt/soajs/node_modules/
npm install soajs.oauth
# go to oauth directory
cd /opt/soajs/node_modules/soajs.oauth
# 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 . |
...
The following example is a request to the testGet API, without providing the required authentication credentials.
Code Block | ||||
---|---|---|---|---|
| ||||
# 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" |
...