Set Up Postman for Making API Calls - larz7/larzworksamples GitHub Wiki

Using Postman

Postman is a reliable tool to test API calls in a development environment.

To use Postman, you will need a .p12 certificate and import the certificate into your keychain.

  1. Create a .p12 file using the following command: openssl pkcs12 -export -out certificate.p12 -inkey 0000xxxx_Cert2_key.pem -in 0000183D_Cert2.pem.
  2. Run open certificate.p12.
  3. Create an environment (e.g. dev or qa or local).
  4. Define test1Url as TestService's one-way SSL url (ends with port 9444).
  5. Define TestServiceAuthUrl as TestService's two-way SSL url (ends with port 9443).
  6. Define deviceId and enter the deviceId matching your certificate.
  7. Use the Authorize API in the Auth folder to authenticate. Make sure to select your device certificate when your browser prompts. If the cert is not prompted, navigate to TestServiceoUrl:9443 and select the device cert.
  8. Enable the Postman proxy interceptor.

Note: If you are testing locally, use the Local header Preset. For Local header preset, add key-values im-cname as {{deviceId}} and X-SSL-ISSUER as test.

  1. Use the Bootup API in the Auth folder to complete the startup process.
  2. Make API calls.