mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
104 lines
2.3 KiB
HTTP
104 lines
2.3 KiB
HTTP
GET {{triliumHost}}/etapi/inbox/2022-01-01
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Request executed successfully", function() {
|
|
client.assert(response.status === 200, "Response status is not 200");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/days/2022-01-01
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Request executed successfully", function() {
|
|
client.assert(response.status === 200, "Response status is not 200");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/days/2022-1
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Correct error handling", function() {
|
|
client.assert(response.status === 400, "Response status is not 400");
|
|
client.assert(response.body.code === "DATE_INVALID");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/weeks/2022-01-01
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Request executed successfully", function() {
|
|
client.assert(response.status === 200, "Response status is not 200");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/weeks/2022-1
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Correct error handling", function() {
|
|
client.assert(response.status === 400, "Response status is not 400");
|
|
client.assert(response.body.code === "DATE_INVALID");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/months/2022-01
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Request executed successfully", function() {
|
|
client.assert(response.status === 200, "Response status is not 200");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/months/2022-1
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Correct error handling", function() {
|
|
client.assert(response.status === 400, "Response status is not 400");
|
|
client.assert(response.body.code === "MONTH_INVALID");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/years/2022
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Request executed successfully", function() {
|
|
client.assert(response.status === 200, "Response status is not 200");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|
|
GET {{triliumHost}}/etapi/calendar/years/202
|
|
Authorization: {{authToken}}
|
|
|
|
> {%
|
|
client.test("Correct error handling", function() {
|
|
client.assert(response.status === 400, "Response status is not 400");
|
|
client.assert(response.body.code === "YEAR_INVALID");
|
|
});
|
|
%}
|
|
|
|
###
|
|
|