diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-02-27 07:39:26 +0000 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2013-03-01 08:07:36 +0200 |
commit | 544ea51c3663070dadd588d9de3e22d6e045743e (patch) | |
tree | 913c45a5125939bd135a6d231eb1ca9a7ad56723 /protocol.txt | |
parent | a3eea9d655584ddecb147ffd4686b561a03d344c (diff) | |
download | acf2-544ea51c3663070dadd588d9de3e22d6e045743e.tar.bz2 acf2-544ea51c3663070dadd588d9de3e22d6e045743e.tar.xz |
basic login session management
Diffstat (limited to 'protocol.txt')
-rw-r--r-- | protocol.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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: <token> + Start transaction: req: POST / resp: txn ID (in header as X-ACF-Transaction-ID) |