mirror of https://github.com/TriliumNext/Notes
support basic auth in ETAPI
parent
6d4ef4ee3d
commit
3e4a9f63fa
@ -0,0 +1,14 @@
|
|||||||
|
GET {{triliumHost}}/etapi/app-info
|
||||||
|
Authorization: Basic whatever {{authToken}}
|
||||||
|
|
||||||
|
> {%
|
||||||
|
client.assert(response.status === 200);
|
||||||
|
client.assert(response.body.clipperProtocolVersion === "1.0");
|
||||||
|
%}
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
GET {{triliumHost}}/etapi/app-info
|
||||||
|
Authorization: Basic whatever wrong pass
|
||||||
|
|
||||||
|
> {% client.assert(response.status === 401); %}
|
||||||
Loading…
Reference in New Issue