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.
- Create a .p12 file using the following command:
openssl pkcs12 -export -out certificate.p12 -inkey 0000xxxx_Cert2_key.pem -in 0000183D_Cert2.pem. - Run
open certificate.p12. - Create an environment (e.g.
devorqaorlocal). - Define
test1Urlas TestService's one-way SSL url (ends with port 9444). - Define
TestServiceAuthUrlas TestService's two-way SSL url (ends with port 9443). - Define
deviceIdand enter the deviceId matching your certificate. - 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:9443and select the device cert. - 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.
- Use the Bootup API in the Auth folder to complete the startup process.
- Make API calls.