Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.98 KB

part1-PrepareForLaunch.md

File metadata and controls

58 lines (39 loc) · 2.98 KB

Prepare for Launch - part 1

Verify pre-requisites

  1. Download Postman for Mac / Windows / Linux
  2. Create a Postman account, and then sign in to the Postman app
  3. Create a free ShipEngine account and get a sandbox API key using this link, and select “United States” as your country when signing up for this free account to enable the sandbox environment

[DO] Create a workspace and Import the collection

  1. In the Postman app, create a personal or team workspace to organize our workshop output.
  2. Click the New+ button, tab over to API Network, and find "ShipEngine".
  3. Import the ShipEngine Walkthrough collection using the Run in Postman button.
  4. Observe various aspects of the collection, including the web documentation that reviews how to get started with the ShipEngine API.

[DO] Authorize your requests

  1. Add your ShipEngine sandbox API key by updating the collection variable called API_KEY.
  2. Observe how Postman handles auth under the Authorization tab of the collection details modal.
  3. Send the first request in the collection List your carriers to initialize some additional collection variables.

[DO] Explore the ShipEngine API

  1. Send the second request in the collection Get a specific carrier and observe various aspects of the request and response.
  2. Review request builder and response viewer elements.

[DO] Write a test

  1. Under the Tests tab, insert a test snippet from the right sidebar.
  2. Send the request again, and observe the test results in the response viewer.
  3. Update the test to fail, send the request again, and observe the test results.
  4. Review the syntax of Postman tests and Chai.js assertions.

winter solstice art

Summary

  1. Orientation within the app
  2. Sending an HTTP request
  3. Writing a test
  4. Creating a collection

Concepts

  1. Workspaces
  2. Requests
  3. Collections
  4. Variables
  5. Tests

Additional resources

  1. Postman API Network
  2. Chai.js test assertion library

Next

Continue to Part 2: Final Countdown