aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index 884e3cc1..274fcd64 100644
--- a/README.rst
+++ b/README.rst
@@ -216,11 +216,10 @@ Delete an article:
}
>>> r = requests.delete("https://pyaggr3g470r.herokuapp.com/api/v1.0/articles/84574", auth=("your-email", "your-password"))
>>> print r.status_code
- 404
+ 200
>>> print r.content
{
- "code": 404,
- "message": "Article not found"
+ "message": "Article not found"
}
Feeds
@@ -240,6 +239,8 @@ Update a feed:
>>> payload = {"title":"Feed new title", "description":"New description"}
>>> r = requests.put("https://pyaggr3g470r.herokuapp.com/api/v1.0/feeds/42", headers=headers, auth=("your-email", "your-password"), data=json.dumps(payload))
+You can also create a feed with a POST request.
+
Delete a feed:
.. code:: python
bgstack15