From 544ea51c3663070dadd588d9de3e22d6e045743e Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Wed, 27 Feb 2013 07:39:26 +0000 Subject: basic login session management --- protocol.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocol.txt') diff --git a/protocol.txt b/protocol.txt index 7e0f3c2..018006a 100644 --- a/protocol.txt +++ b/protocol.txt @@ -4,6 +4,16 @@ ACF2 HTTP Protocol Load JavaScript client: req: GET / +Log in: +req: POST /login + - body is a JSON object with username and password attributes +resp: authentication token (in header as X-ACF-Auth-Token) + - use X-ACF-Auth-Token in the header of subsequent requests + +Log out: +req: DELETE /login + X-ACF-Auth-Token: + Start transaction: req: POST / resp: txn ID (in header as X-ACF-Transaction-ID) -- cgit v1.2.3