trilium/test-etapi/basic-auth.http

22 lines
450 B
Text
Raw Permalink Normal View History

2022-10-09 02:59:11 +08:00
GET {{triliumHost}}/etapi/app-info
Authorization: Basic etapi {{authToken}}
2022-10-09 02:59:11 +08:00
> {%
client.assert(response.status === 200);
client.assert(response.body.clipperProtocolVersion === "1.0");
%}
###
GET {{triliumHost}}/etapi/app-info
Authorization: Basic etapi wrong
> {% client.assert(response.status === 401); %}
###
GET {{triliumHost}}/etapi/app-info
Authorization: Basic wrong {{authToken}}
2022-10-09 02:59:11 +08:00
> {% client.assert(response.status === 401); %}