DEV Community

loading...

Discussion on: Going beyond with Postman

Collapse
itsasine profile image
ItsASine (Kayla)

My two tricks for Postman:

When using Chai tests, you can also set environment variables.

So I can expect that getting a token is a 200, but I can also parse the JSON response for that token and set the token type and token itself in my variables to use in subsequent calls. Documentation

Postman can generate documentation and it can import documentation.

I'm all about automating the boring stuff, and manually setting up collections for an existing API sounds terribly boring. Find the Swagger documentation and import that! Documentation