update login api docs
This commit is contained in:
parent
4fc4b67f91
commit
6fffa1ac05
1 changed files with 8 additions and 3 deletions
11
docs/honk.3
11
docs/honk.3
|
|
@ -35,11 +35,11 @@ See below.
|
||||||
An authorization token.
|
An authorization token.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.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 .
|
.Pa /api .
|
||||||
.Ss login
|
.Ss login
|
||||||
Send a POST request to
|
Send a POST request to
|
||||||
.Pa /login
|
.Pa /dologin
|
||||||
with the following form values.
|
with the following form values.
|
||||||
.Bl -tag -width username
|
.Bl -tag -width username
|
||||||
.It Fa username
|
.It Fa username
|
||||||
|
|
@ -53,7 +53,12 @@ Must be
|
||||||
.Pp
|
.Pp
|
||||||
This will return a token to be used for future requests.
|
This will return a token to be used for future requests.
|
||||||
The token is valid for one year.
|
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
|
.Ss honk
|
||||||
The
|
The
|
||||||
.Fa action
|
.Fa action
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue