Skip to content

v2.1.0

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Jul 20:31
· 128 commits to main since this release
fb5396d

What's Changed

Exciting New Features ✨

  • Feature: Add metatags and add ability to process responses externally by @gorillamoe in #50

You can now post-process the response body with any external command you like:

This comes in handy when getting a token from an auth endpoint and then re-using that in the next requests.

Simple example:

POST https://httpbin.org/post HTTP/1.1
content-type: application/json
accept: application/json
# @env-stdin-cmd AUTH_TOKEN jq -rcj .json.token
# @env-stdin-cmd AUTH_USERNAME jq -rcj .json.username

{
  "username": "gorillamoe",
  "password": "bananas",
  "token": "foobar"
}

###

POST https://httpbin.org/post HTTP/1.1
content-type: application/json
accept: application/json
authorization: Bearer {{AUTH_TOKEN}}

{
  "success": true,
  "username": "{{AUTH_USERNAME}}"
}

Full Changelog: v2.0.1...v2.1.0