Using Response Headers in First Response for Request Headers in Second Request

148 Views Asked by At

I'm migrating from postman to rspec/rswag for API documentation and testing.

I can get a simple example working that requires no auth, but for endpoints that require a login I'm unsure how to proceed.

In postman, I would create a test which extracted the values from the response json and set the global/collection variable to that value

How would I do the same in rspec? The README doesn't have any examples of this pattern.

0

There are 0 best solutions below