Verifying deployment

Check the arsrestapi.log file

If the REST Services application has started correctly, you will find the following information in the arsrestapi.log file. Refer to Deploying to WebSphere Application Server or Deploying to WebSphere Liberty for the default location of this file. Reading keys, storing keys, reading pool configuration, and adding connections to the pool must all be successful for the REST Services application to be functional.

INFO StartupListener:init - Starting...
INFO SecurityPropertyReader:provideServerPropertiesMap - Reading
  keys from -> C:/restcfgdir/keys
INFO SecurityPropertyReader:provideServerPropertiesMap - Reading
  Key file: C:/restcfgdir/keys/DeptXYZAccessID.ksf
INFO SecurityPropertyReader:provideServerPropertiesMap - Number
  of keys stored: 1
INFO PoolPropertyReader:provideServerPropertiesMap - Reading
  pool properties from -> poolConfig.properties
INFO PropertyMapReader:provideServerPropertiesMap - Reading
  pools from -> C:/restcfgdir/pools
INFO PropertyMapReader:provideServerPropertiesMap - Pool
  configuration: C:/restcfgdir/pools/odtest.conn
INFO StartupListener:init - Starting pool: odtest
INFO ODPoolFactory:create - Adding connection....
INFO ODPoolFactory:create - Adding connection....
INFO ODPoolFactory:create - Adding connection....
INFO StartupListener:init - Total Created [3]
INFO StartupListener:init - Number idle [3]

Use curl or other tools to access the "ping" endpoint

Run a curl command similar to the following:

curl -X GET --location "http://localhost:9080/cmod-rest/v1/ping" -H 
"Authorization: CMODSharedKey odtest-3JgxXB4DxGXrOS3JxNpV"

The command should return output similar to:

{
   "Java Vendor": "Oracle Corporation",
   "Java Version": "11.0.2",
   "Java VM Specifcication Vendor": "Oracle Corporation",
   "Java Runtime Version": "11.0.2+9",
   "Java home": "C:\\Java\\openjdk-11.0.2",
   "Java VM Vendor": "Oracle Corporation",
   "Java Runtime Name": "OpenJDK Runtime Environment",
   "OS Architecture": "amd64",
   "OS Name": "Windows 10",
   "OS Version": "10.0",
   "Status": "Content Manager OnDemand REST Services online",
   "Rest configuration directory (restcfgdir)": "C:\\restcfgdir",
   "ODWEK Version": "10.5.0.0",
   "OnDemand Server Version": "10.5.0.0",
   "Max connections": 10
}