added app-info method to etapi #2697

This commit is contained in:
zadam
2022-03-07 22:57:48 +01:00
parent c9e72f8fb9
commit eba824a5b1
6 changed files with 89 additions and 3 deletions

7
test-etapi/app-info.http Normal file
View File

@@ -0,0 +1,7 @@
GET {{triliumHost}}/etapi/app-info
Authorization: {{authToken}}
> {%
client.assert(response.status === 200);
client.assert(response.body == "Hi there!");
%}

View File

@@ -96,8 +96,14 @@ POST {{triliumHost}}/etapi/create-note
> {% client.assert(response.status === 401); %}
###
GET {{triliumHost}}/etapi/app-info
> {% client.assert(response.status === 401); %}
### Fake URL will get a 404 even without token
GET {{triliumHost}}/etapi/zzzzzz
> {% client.assert(response.status === 404); %}
> {% client.assert(response.status === 404); %}