Skip to content

Commit

Permalink
fixed doc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seagullbird committed Dec 17, 2016
1 parent 2c3215f commit 04abdaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_sources/api1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ If your *blog body* is properly composed according to the :ref:`blog format <blo

Update an Existing Blog
~~~~~~~~~~~~~~~~~~~~~~~~~
Updating an existing blog is pretty much the same as creating a new one. Except that if an existing blog is to be updated, a blog id should be provided.
Updating an existing blog is pretty much the same as creating a new one. Except that if an existing blog is to be updated, a blog id should be provided. Besides, you should use ``PUT`` instead of ``POST`` to update an existing blog.

.. code-block:: shell
$ http --json --auth token: POST https://blext.herokuapp.com/api/v1.0/blogs/1 \
$ http --json --auth token: PUT https://blext.herokuapp.com/api/v1.0/blogs/1 \
> "body=<body>" \
> "draft=false"
Expand Down

0 comments on commit 04abdaf

Please sign in to comment.