Cat facts capture session
GET https://catfact.ninja/breeds?limit=3
Under the Tests tab, I can use the pm.* APIs allowing me access to the session data. In this example, let's parse some information from the response, and then save this information as an environment variable so we can access this info in a subsequent request. There's a bunch of stuff you can do with session data in Qodex.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
limit | number |
RESPONSES
status: OK
{"total":98,"per_page":"3","current_page":1,"last_page":33,"next_page_url":"https://catfact.ninja/breeds?page=2","prev_page_url":null,"from":1,"to":3,"data":[{"breed":"Abyssinian","country":"Ethiopia","origin":"Natural/Standard","coat":"Short","pattern":"Ticked"},{"breed":"Aegean","country":"Greece","origin":"Natural/Standard","coat":"Semi-long","pattern":"Bi- or tri-colored"},{"breed":"American Curl","country":"United States","origin":"Mutation","coat":"Short/Long","pattern":"All"}]}