Skip to content

Commit

Permalink
#601 updated logout docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Mar 16, 2016
1 parent b43b4ec commit 7f6572e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docs/DELETE-logout.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,35 @@ DELETE Logout

.. http:delete:: /logout
Deletes a session and its cookie
Deletes a session and its cookie.

**Sample Request**

.. sourcecode:: http

DELETE /models/8b8122539570439cb3703c0f8806158e HTTP/1.1
DELETE /logout HTTP/1.1
Host: localhost:8093
Content-Length: 0
Authorization: Basic c2x5Y2F0OnNseWNhdA==
Accept-Encoding: gzip, deflate, compress
Accept: */*
User-Agent: python-requests/1.2.3 CPython/2.7.5 Linux/2.6.32-358.23.2.el6.x86_64
Cookie: slycatauth=dee8324c69d2424385246edc8d92e996; slycattimeout=timeout

**Sample Response**

.. sourcecode:: http

HTTP/1.1 204 Model deleted.
Date: Mon, 25 Nov 2013 20:36:04 GMT
Cache-Control: no-cache, no-store, must-revalidate
Content-Length: 0
Content-Type: text/html;charset=utf-8
Server: CherryPy/3.2.2
Date: Wed, 16 Mar 2016 16:31:53 GMT
Expires: 0
Pragma: no-cache
Server: CherryPy/4.0.0
Set-Cookie: slycatauth=dee8324c69d2424385246edc8d92e996; expires=Wed, 16 Mar 2016 16:31:53 GMT
slycattimeout=timeout; expires=Wed, 16 Mar 2016 16:31:53 GMT

See Also
--------
Expand Down

0 comments on commit 7f6572e

Please sign in to comment.