get-date-notes.http 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. GET {{triliumHost}}/etapi/inbox/2022-01-01
  2. Authorization: {{authToken}}
  3. > {% client.assert(response.status === 200); %}
  4. ###
  5. GET {{triliumHost}}/etapi/calendar/days/2022-01-01
  6. Authorization: {{authToken}}
  7. > {% client.assert(response.status === 200); %}
  8. ###
  9. GET {{triliumHost}}/etapi/calendar/days/2022-1
  10. Authorization: {{authToken}}
  11. > {%
  12. client.assert(response.status === 400);
  13. client.assert(response.body.code === "DATE_INVALID");
  14. %}
  15. ###
  16. GET {{triliumHost}}/etapi/calendar/weeks/2022-01-01
  17. Authorization: {{authToken}}
  18. > {% client.assert(response.status === 200); %}
  19. ###
  20. GET {{triliumHost}}/etapi/calendar/weeks/2022-1
  21. Authorization: {{authToken}}
  22. > {%
  23. client.assert(response.status === 400);
  24. client.assert(response.body.code === "DATE_INVALID");
  25. %}
  26. ###
  27. GET {{triliumHost}}/etapi/calendar/months/2022-01
  28. Authorization: {{authToken}}
  29. > {% client.assert(response.status === 200); %}
  30. ###
  31. GET {{triliumHost}}/etapi/calendar/months/2022-1
  32. Authorization: {{authToken}}
  33. > {%
  34. client.assert(response.status === 400);
  35. client.assert(response.body.code === "MONTH_INVALID");
  36. %}
  37. ###
  38. GET {{triliumHost}}/etapi/calendar/years/2022
  39. Authorization: {{authToken}}
  40. > {% client.assert(response.status === 200); %}
  41. ###
  42. GET {{triliumHost}}/etapi/calendar/years/202
  43. Authorization: {{authToken}}
  44. > {%
  45. client.assert(response.status === 400);
  46. client.assert(response.body.code === "YEAR_INVALID");
  47. %}