all repos — honk @ 1ff0fb3d3dd5ca2fd6197fd26e031b177bae7df3

my fork of honk

update login api docs
Ted Unangst tedu@tedunangst.com
Sun, 10 Nov 2019 23:51:11 -0500
commit

1ff0fb3d3dd5ca2fd6197fd26e031b177bae7df3

parent

b51a0ae64d19d702e02365dc111ee0c774ce2d27

1 files changed, 8 insertions(+), 3 deletions(-)

jump to
M docs/honk.3docs/honk.3

@@ -35,11 +35,11 @@ .It Fa token

An authorization token. .El .Pp -The API URL for all actions other than login is +The API URL for all actions other than login and logout is .Pa /api . .Ss login Send a POST request to -.Pa /login +.Pa /dologin with the following form values. .Bl -tag -width username .It Fa username

@@ -53,7 +53,12 @@ .El

.Pp This will return a token to be used for future requests. The token is valid for one year. -You can stop using the API at any time, but you can never logout. +.Ss logout +Send a request to +.Pa /logout +with the +.Fa token +to be expired. .Ss honk The .Fa action