Skip to content

Commit

Permalink
#601 updating login docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Mar 16, 2016
1 parent 6c81dfe commit c5739cb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docs/POST-login.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ POST Login

:requestheader Content-Type: application/json

:<json string name: username
:<json string password: password
:<json object url: url from which you came
:<json 64 bit encoded string name: username
:<json 64 bit encoded string password: password
:<json object url: origin url from which you came

:responseheader Content-Type: application/json

Expand All @@ -19,7 +19,7 @@ POST Login

.. sourcecode:: http

POST /projects HTTP/1.1
POST /login HTTP/1.1
Host: localhost:8092
Content-Length: 45
Accept-Encoding: gzip, deflate, compress
Expand All @@ -28,8 +28,8 @@ POST Login
content-type: application/json

{
"user_name":"slycat",
"password":"slycat",
"user_name":"64 bit encoded slycat(c2x5Y2F0)",
"password":"64 bit encoded slycat(c2x5Y2F0)",
"location":{
"href":"https://192.168.99.100/login/slycat-login.html",
"origin":"https://192.168.99.100",
Expand All @@ -49,10 +49,11 @@ POST Login
Date: Thu, 11 Apr 2013 21:30:16 GMT
Content-Length: 42
Content-Type: application/json
Set-Cookie:"slycatauth=xyz;httponly;Max-Age=60000;Path=/;secure;slycattimeout=timeout;Max-Age=60000;Path=/"
Location: http://localhost:8092/projects/505d0e463d5ed4a32bb6b0fe9a000d36
Server: CherryPy/3.2.2

{"id": "505d0e463d5ed4a32bb6b0fe9a000d36"}
{"target": "https://192.168.99.100/projects","success":true}

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

0 comments on commit c5739cb

Please sign in to comment.