mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
added app-info method to etapi #2697
This commit is contained in:
7
test-etapi/app-info.http
Normal file
7
test-etapi/app-info.http
Normal file
@@ -0,0 +1,7 @@
|
||||
GET {{triliumHost}}/etapi/app-info
|
||||
Authorization: {{authToken}}
|
||||
|
||||
> {%
|
||||
client.assert(response.status === 200);
|
||||
client.assert(response.body == "Hi there!");
|
||||
%}
|
||||
@@ -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); %}
|
||||
|
||||
Reference in New Issue
Block a user