From cc81549b32bcf29b35314102cc695e64081f8b0d Mon Sep 17 00:00:00 2001 From: Albert DeFusco Date: Mon, 7 Jun 2021 13:40:11 -0500 Subject: [PATCH] fix readme --- CHANGELOG.md | 7 +++++++ README.md | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8723515..5c78c5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.6.0] - 2021-06-07 +### Added +- CORS support using `--allow-origin HOST:PORT` or `$TRANQUILIZER_ALLOW_ORIGIN` + +### Fixed +- Example in README + ## [0.5.0] - 2020-07-20 ### Changed - Migrated from flask-restplus to flask-restx diff --git a/README.md b/README.md index ae92610..eed18af 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ In [1]: import requests In [2]: response = requests.get('http://localhost:8086/order', params={'cheese':'Red Leicester'}) -In [3]: response.json() -Out[3]: {'response': "I'm afraid we're fresh out of Red Leicester, Sir."} +In [3]: response.text +Out[3]: '"I\'m afraid we\'re fresh out of cheddar, Sir."\n' ``` The *tranquilized* API is documented with [Swagger](https://swagger.io/tools/open-source/) and is accessible